[IMP] purchase,stock_account: Improve account properties display
Purpose ======= https://github.com/odoo/odoo/pull/52351 already improved the display by hiding some account properties if it wasn't really neeeded on manual inventory valuation. Specification ============= Keep the Account Properties section visible in any cases. The price difference account is the only field of the section which is only used in automated valuation. closes odoo/odoo#54210 Taskid: 2232026 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
'views/res_config_settings_views.xml',
|
||||
'views/res_partner_views.xml',
|
||||
'views/stock_production_lot_views.xml',
|
||||
'views/product_category_views.xml',
|
||||
'report/purchase_report_views.xml',
|
||||
'report/purchase_report_templates.xml',
|
||||
'report/report_stock_rule.xml',
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="product_category_view_form" model="ir.ui.view">
|
||||
<field name="name">product.category.view.form.inherit.purchase.stock</field>
|
||||
<field name="model">product.category</field>
|
||||
<field name="inherit_id" ref="purchase.view_category_property_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="property_account_creditor_price_difference_categ" position="attributes">
|
||||
<attribute name="attrs">{'invisible':[('property_valuation', '=', 'manual_periodic')]}</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -17,11 +17,8 @@
|
||||
<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="attributes">
|
||||
<attribute name="attrs">{'invisible':[('property_valuation', '=', 'manual_periodic')]}</attribute>
|
||||
</group>
|
||||
<group name="account_property" position="inside">
|
||||
<group name="account_stock_property" string="Account Stock Properties" groups="account.group_account_readonly">
|
||||
<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')]}" />
|
||||
|
||||
Reference in New Issue
Block a user