[IMP] stock_account: country_code in the view
In some localisation (example: latam) we put company dependant field on the stock.view_picking_form view. This commit will add the country_code in the form view so that we can use it to hide information depending on the company. Also removing the useless country_code field. closes odoo/odoo#134617 Task: 3270458 Related: odoo/enterprise#47043 Related: odoo/upgrade#5266 Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
<field name="inherit_id" ref="stock.view_picking_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//button[@name='do_print_picking']" position="after">
|
||||
<field name="country_code" invisible="1"/>
|
||||
<field name="l10n_it_show_print_ddt_button" invisible="1"/>
|
||||
<button name="%(l10n_it_stock_ddt.action_report_ddt)d" type="action" string="Print"
|
||||
invisible="not l10n_it_show_print_ddt_button"
|
||||
|
||||
@@ -158,6 +158,10 @@
|
||||
<field name="model">stock.picking</field>
|
||||
<field name="inherit_id" ref="stock.view_picking_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='is_locked']" position="before">
|
||||
<field name="country_code" invisible="1"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<button type="object"
|
||||
name="action_view_stock_valuation_layers"
|
||||
|
||||
Reference in New Issue
Block a user