~vauxoo/addons-vauxoo/6.0-trunk

« back to all changes in this revision

Viewing changes to cost_imex/view/purchase_view.xml

  • Committer: Openerp User
  • Author(s): Vauxoo
  • Date: 2012-07-26 20:13:13 UTC
  • Revision ID: openerp@ingelub-erp-20120726201313-cgffyvd3zmqhn2w4

[FIX] bug a la hora de confirmar una orden de venta cuando el producto es de tipo servicio 
tomaba dicho porducto como si este fuera almacenable y tuviera stock cosa que no es asi 

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="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"/>
11
 
        </xpath>
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">
16
 
              
17
 
                <field name="flete"/>
18
 
              <group col="9" colspan="9">
19
 
                <field name="percent_apply" nolabel="1"/>
20
 
              </group>
21
 
              </group>
22
 
              <group col="4" colspan="9">
23
 
                <field name="percent_imex_ids" domain="[('percent_lines','!=',False)]" readonly="1" nolabel="1"/>
24
 
              </group>
25
 
           <group>
26
 
           <button name="compute_import_taxes" string="Execute" type="object" icon="gtk-print"/>
27
 
           </group>
28
 
            </group>
29
 
          </page>
30
 
       
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"/>
35
 
</group>
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"/>
42
 
                
43
 
                
44
 
                </tree>
45
 
                
46
 
                
47
 
                </field>
48
 
                </group>
49
 
            </group>          
50
 
          </page>
51
 
       
52
 
       
53
 
        </xpath>
54
 
      </field>
55
 
    </record>
56
 
  </data>
57
 
</openerp>