1
<?xml version='1.0' encoding='utf-8'?>
4
<record id="view_inherit_purchase_imex_form" model="ir.ui.view">
5
<field name="name">view.purchase.imex.form</field>
6
<field name="model">purchase.order</field>
7
<field name="inherit_id" ref="purchase.purchase_order_form"/>
8
<field name="arch" type="xml">
9
<xpath expr="//field[@name='company_id']" position="after">
10
<field name="import_purchase"/>
12
<xpath expr="//page[@string='Purchase Order']" position="after">
13
<page string="Importation " attrs="{'invisible':[('import_purchase','=',False)]}" groups="cost_imex.group_percent_imex_manager">
14
<group col="4" colspan="9">
15
<group col="9" colspan="9">
18
<group col="9" colspan="9">
19
<field name="percent_apply" nolabel="1"/>
22
<group col="4" colspan="9">
23
<field name="percent_imex_ids" domain="[('percent_lines','!=',False)]" readonly="1" nolabel="1"/>
26
<button name="compute_import_taxes" string="Execute" type="object" icon="gtk-print"/>
31
<page string="Special Info" groups="cost_imex.group_percent_special_tax_manager" attrs="{'invisible':[('import_purchase','=',False)]}">
32
<group col="9" colspan="9">
33
<group col="9" colspan="9">
34
<field name="percent_special"/>
36
<group col="9" colspan="9">
37
<field name="percent_imex_s_ids" domain="[('percent_lines','=',False)]" nolabel="1">
38
<tree string="Compute Percent" editable="bottom">
39
<field name="line_purchase_id"/>
40
<field name="cost_unit_total" groups="cost_imex.group_percent_special_tax_manager"/>
41
<field name="cost_qty" groups="cost_imex.group_percent_special_tax_manager"/>