Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][FIX] l10n_br_purchase: fix purchase order line form button 'save and new' #3088

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 28 additions & 42 deletions l10n_br_purchase/views/purchase_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,69 +131,55 @@
>{'invisible': ['|', ('parent.fiscal_operation_id', '!=', False), ('display_type', '!=', False)]}</attribute>
</xpath>
<xpath
expr="//field[@name='order_line']/form/field[@name='name']"
position="after"
expr="//field[@name='order_line']/form/group/group[3]"
position="before"
>
<group colspan="12">
<notebook
attrs="{'invisible': ['|', ('parent.fiscal_operation_id', '=', False), ('display_type', '!=', False)]}"
>
<page
name="fiscal_taxes"
string="Taxes"
attrs="{'invisible': [('parent.fiscal_operation_id', '=', False)]}"
/>
<page
name="fiscal_line_extra_info"
string="Extra Info"
attrs="{'invisible': [('parent.fiscal_operation_id', '=', False)]}"
/>
<page
name="others"
string="Outros Custos"
attrs="{'invisible': [('parent.fiscal_operation_id', '=', False)]}"
attrs="{'invisible': ['|', ('parent.fiscal_operation_id', '=', False), ('display_type', '!=', False)]}"
>
<page name="fiscal_taxes" string="Taxes" />
<page name="fiscal_line_extra_info" string="Extra Info" />
<page name="others" string="Outros Custos">
<group>
<field name="delivery_costs" invisible="1" />
<field
name="freight_value"
attrs="{'readonly': [('delivery_costs', '=', 'total')]}"
/>
name="freight_value"
attrs="{'readonly': [('delivery_costs', '=', 'total')]}"
/>
<field
name="insurance_value"
attrs="{'readonly': [('delivery_costs', '=', 'total')]}"
/>
name="insurance_value"
attrs="{'readonly': [('delivery_costs', '=', 'total')]}"
/>
<field
name="other_value"
attrs="{'readonly': [('delivery_costs', '=', 'total')]}"
/>
name="other_value"
attrs="{'readonly': [('delivery_costs', '=', 'total')]}"
/>
</group>
</page>
<page
name="accounting"
string="Accounting"
attrs="{'invisible': [('parent.fiscal_operation_id', '=', False)]}"
>
<page name="accounting" string="Accounting">
<group>
<field
name="taxes_id"
widget="many2many_tags"
options="{'no_create': True}"
context="{'search_view_ref': 'account.account_tax_view_search'}"
domain="[('type_tax_use','=','purchase'),('company_id','=',parent.company_id)]"
/>
name="taxes_id"
widget="many2many_tags"
options="{'no_create': True}"
context="{'search_view_ref': 'account.account_tax_view_search'}"
domain="[('type_tax_use','=','purchase'),('company_id','=',parent.company_id)]"
/>
</group>
</page>
<!-- necessario incluir porque o attrs não funciona na tag Page apenas na Notebook-->
<page string="Notes" name="notes">
<field name="name" />
</page>
<page
string="Invoices and Incoming Shipments"
name="invoices_incoming_shiptments"
>
string="Invoices and Incoming Shipments"
name="invoices_incoming_shiptments"
>
<field name="invoice_lines" />
</page>
</notebook>
</notebook>
</group>
</xpath>
<xpath expr="//field[@name='amount_untaxed']" position="after">
<field name="delivery_costs" invisible="1" />
Expand Down
Loading