mirror of
https://github.com/NaN-tic/trytond-sale_product_raw.git
synced 2023-12-14 03:13:00 +01:00
Add is_raw_product column in product's list shown from purchase.line
This commit is contained in:
parent
cea8527aa4
commit
c5e860e320
12
CHANGELOG
12
CHANGELOG
|
@ -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
20
product.xml
Normal 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>
|
7
sale.xml
7
sale.xml
|
@ -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>
|
||||
|
|
|
@ -6,6 +6,8 @@ depends:
|
|||
production_origin
|
||||
sale
|
||||
extras_depend:
|
||||
purchase
|
||||
sale_pos
|
||||
xml:
|
||||
product.xml
|
||||
sale.xml
|
||||
|
|
8
view/product_list_purchase_line.xml
Normal file
8
view/product_list_purchase_line.xml
Normal 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>
|
Loading…
Reference in a new issue