summaryrefslogtreecommitdiff
path: root/addons/stock_account/views/product_views.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/stock_account/views/product_views.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/stock_account/views/product_views.xml')
-rw-r--r--addons/stock_account/views/product_views.xml42
1 files changed, 42 insertions, 0 deletions
diff --git a/addons/stock_account/views/product_views.xml b/addons/stock_account/views/product_views.xml
new file mode 100644
index 00000000..f4c47e58
--- /dev/null
+++ b/addons/stock_account/views/product_views.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <data>
+ <record id="product_template_tree_view" model="ir.ui.view">
+ <field name="name">product.template.tree.inherit.stock.account</field>
+ <field name="model">product.template</field>
+ <field name="inherit_id" ref="product.product_template_tree_view"/>
+ <field name="arch" type="xml">
+ <field name="standard_price" position="attributes">
+ <attribute name="readonly">1</attribute>
+ </field>
+ </field>
+ </record>
+
+ <record id="view_category_property_form" model="ir.ui.view">
+ <field name="name">product.category.stock.property.form.inherit</field>
+ <field name="model">product.category</field>
+ <field name="inherit_id" ref="account.view_category_property_form"/>
+ <field name="arch" type="xml">
+ <group name="account_property" position="inside">
+ <group name="account_stock_property" string="Account Stock Properties" groups="account.group_account_readonly" attrs="{'invisible':[('property_valuation', '=', 'manual_periodic')]}">
+ <field name="property_stock_valuation_account_id" options="{'no_create': True}" attrs="{'required':[('property_valuation', '=', 'real_time')]}"/>
+ <field name="property_stock_journal" attrs="{'required':[('property_valuation', '=', 'real_time')]}" />
+ <field name="property_stock_account_input_categ_id" attrs="{'required':[ ('property_valuation', '=', 'real_time')]}" />
+ <field name="property_stock_account_output_categ_id" attrs="{'required':[ ('property_valuation', '=', 'real_time')]}" />
+ <div colspan="2" class="alert alert-info mt16" role="status">
+ <b>Set other input/output accounts on specific </b><button name="%(stock.action_prod_inv_location_form)d" role="button" type="action" class="btn-link" style="padding: 0;vertical-align: baseline;" string="locations"/>.
+ </div>
+ </group>
+ </group>
+ <group name="account_property" position="before">
+ <group>
+ <group string="Inventory Valuation">
+ <field name="property_cost_method"/>
+ <field name="property_valuation" groups="account.group_account_readonly,stock.group_stock_manager"/>
+ </group>
+ </group>
+ </group>
+ </field>
+ </record>
+ </data>
+</odoo>