Add is_raw_product column in product's list shown from purchase.line

This commit is contained in:
Guillem Barba 2014-10-31 14:06:25 +01:00
parent cea8527aa4
commit c5e860e320
5 changed files with 42 additions and 7 deletions

View file

@ -1 +1,13 @@
* Add is_raw_product column in product's list shown from purchase.line (add
extra dependency)
* Use functional sale field to check if reset production is allowed
* Made it compatible with sale_pos module
* Process sale after create line's productions
* Changed sale.line<->production relation and allow handle production
exceptions
* Set uom and quantity in productions created from sale line
* Set product in productions created from sale line
* Add is_raw_product column in product's list shown from sale.line
Version 3.2.0 - 2014-06-17
* Initial release

20
product.xml Normal file
View file

@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<tryton>
<data>
<!-- product.product -->
<record model="ir.ui.view" id="product_view_list_sale_line">
<field name="model">product.product</field>
<field name="inherit" ref="sale.product_view_list_sale_line"/>
<field name="name">product_list_sale_line</field>
</record>
</data>
<data depends="purchase">
<record model="ir.ui.view" id="product_view_list_purchase_line">
<field name="model">product.product</field>
<field name="inherit" ref="purchase.product_view_list_purchase_line"/>
<field name="name">product_list_purchase_line</field>
</record>
</data>
</tryton>

View file

@ -3,13 +3,6 @@
copyright notices and license terms. -->
<tryton>
<data>
<!-- product.product -->
<record model="ir.ui.view" id="product_view_list_sale_line">
<field name="model">product.product</field>
<field name="inherit" ref="sale.product_view_list_sale_line"/>
<field name="name">product_list_sale_line</field>
</record>
<!-- sale.sale -->
<record model="ir.ui.view" id="sale_view_form">
<field name="model">sale.sale</field>

View file

@ -6,6 +6,8 @@ depends:
production_origin
sale
extras_depend:
purchase
sale_pos
xml:
product.xml
sale.xml

View file

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name='code']" position="after">
<field name="is_raw_product"/>
</xpath>
</data>