~vauxoo/addons-vauxoo/7.0-user_story-rev4-kty

« back to all changes in this revision

Viewing changes to cost_structure/view/sale_view.xml

  • Committer: Jose Morales
  • Date: 2013-03-20 15:50:17 UTC
  • mto: This revision was merged to the branch mainline in revision 519.
  • Revision ID: jose@vauxoo.com-20130320155017-uvzmypl3ujrck6f2
 
[IMP] Remove sale model in cost module  to work without price in cost module beacase it is only compute the average cost in products 

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 model="ir.ui.view" id="sale_view_order_method_cost">
5
 
      <field name="name">sale_view_order_method_cost</field>
6
 
      <field name="model">sale.order</field>
7
 
      <field name="inherit_id" ref="sale.view_order_form" />
8
 
      <field name="type">form</field>
9
 
      <field name="arch" type="xml">
10
 
          /form/sheet/notebook/page[@string="Order Lines"]/field[@name="order_line"]/tree[@string="Sales Order Lines"]/ 
11
 
          <xpath expr='/form/sheet/notebook/page[@string="Order Lines"]/field[@name="order_line"]/tree[@string="Sales Order Lines"]/field[@name="product_id"]' position="replace">
12
 
              <field name="product_id" context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"  groups="base.group_user" on_change="product_id_change(parent.pricelist_id, product_id, product_uom_qty, product_uom, product_uos_qty, product_uos, name, parent.partner_id, False, True, parent.date_order, False, parent.fiscal_position, False, context)"/>
13
 
 
14
 
          
15
 
          </xpath>
16
 
    
17
 
    
18
 
          <xpath expr='/form/sheet/notebook/page[@string="Order Lines"]/field[@name="order_line"]/tree[@string="Sales Order Lines"]/field[@name="product_uom_qty"]' position="replace">
19
 
              <field context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
20
 
                     name="product_uom_qty" class="oe_inline" on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, False, parent.date_order, False, parent.fiscal_position, True, context)"/>
21
 
 
22
 
        </xpath>
23
 
        <xpath expr='/form/sheet/notebook/page[@string="Order Lines"]/field[@name="order_line"]/tree[@string="Sales Order Lines"]/field[@name="product_uom_qty"]' position="after">
24
 
          
25
 
          <field name="cost_structure_id" invisible="1" />
26
 
          <field name="price_structure_id" domain="[('cost_structure_id','=',cost_structure_id)]" on_change="price_unit(price_structure_id,product_uom,product_uom_qty)" />
27
 
<!--
28
 
          TODO: <field name="cost_structure_id" domain="[('product_id','=',product_id)]" widget="selection" />
29
 
-->
30
 
        </xpath>
31
 
        
32
 
        
33
 
        <xpath expr='//field[@name="order_line"]' position="before">
34
 
          <group colspan="9" col="9">
35
 
         
36
 
         
37
 
          <field name="status_price" attrs="{'invisible': [('status_bool', '=', False)]}" nolabel="1" />
38
 
          <field name="status_bool" invisible="1" />
39
 
          
40
 
          </group>
41
 
          
42
 
        </xpath>
43
 
        
44
 
        
45
 
        
46
 
        
47
 
      </field>
48
 
    </record>
49
 
  </data>
50
 
</openerp>