~vauxoo/addons-vauxoo/7.0-user_story_fix1-kty

« back to all changes in this revision

Viewing changes to cost_imex/view/purchase_view.xml

  • Committer: jose at vauxoo
  • Date: 2012-08-25 19:28:03 UTC
  • mto: This revision was merged to the branch mainline in revision 424.
  • Revision ID: jose@vauxoo.com-20120825192803-z260rv4uyp8l23pj

[ADD] Added module cost imex to compute importantion tax

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
  <data>
 
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="type">form</field>
 
8
      <field name="inherit_id" ref="purchase.purchase_order_form" />
 
9
      <field name="arch" type="xml">
 
10
        <xpath expr="//field[@name='company_id']" position="after">
 
11
            <field name="import_purchase" />
 
12
        </xpath>
 
13
        <xpath expr="/form/notebook/page[@string='Purchase Order']" position="after">
 
14
          <page string="Importation " attrs="{'invisible':[('import_purchase','=',False)]}" groups='cost_imex.group_percent_imex_manager' >
 
15
            <group col="4" 
 
16
            colspan="9">
 
17
              <group col="9" colspan="9">
 
18
              
 
19
                <field name="flete" />
 
20
              <group col="9" colspan="9">
 
21
                <field name="percent_apply" nolabel="1" />
 
22
              </group>
 
23
              </group>
 
24
              <group col="4" colspan="9">
 
25
                <field name="percent_imex_ids" readonly="1" nolabel="1" />
 
26
              </group>
 
27
           <group>
 
28
           <button name="compute_import_taxes" string="Execute" type="object" icon="gtk-print" />
 
29
           </group>
 
30
            </group>
 
31
          </page>
 
32
       
 
33
          <page string="Special Info" groups='cost_imex.group_percent_special_tax_manager' attrs="{'invisible':[('import_purchase','=',False)]}">
 
34
            <group col="9" colspan="9">
 
35
            <group col="9" colspan="9">
 
36
            <field name="percent_special" />
 
37
</group>
 
38
                <group col="9" colspan="9">
 
39
                <field name="percent_imex_s_ids" nolabel="1">
 
40
                <tree string='Compute Percent' editable="bottom" > 
 
41
                <field name="line_purchase_id" />
 
42
                <field name="cost_unit_total" groups='cost_imex.group_percent_special_tax_manager'/>
 
43
                <field name="cost_qty" groups='cost_imex.group_percent_special_tax_manager'/>
 
44
                
 
45
                
 
46
                </tree>
 
47
                
 
48
                
 
49
                </field>
 
50
                </group>
 
51
            </group>          
 
52
          </page>
 
53
       
 
54
       
 
55
        </xpath>
 
56
      </field>
 
57
    </record>
 
58
  </data>
 
59
</openerp>