Merge lp:~manu-tiedra/openobject-addons/pexego_extra_6.0 into lp:~pexego/openobject-addons/extra-6.0
Status: | Merged |
---|---|
Merged at revision: | 18 |
Proposed branch: | lp:~manu-tiedra/openobject-addons/pexego_extra_6.0 |
Merge into: | lp:~pexego/openobject-addons/extra-6.0 |
Diff against target: |
28 lines (+8/-4) 1 file modified
product_lot_sequence/product.py (+8/-4) |
To merge this branch: | bzr merge lp:~manu-tiedra/openobject-addons/pexego_extra_6.0 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Omar (Pexego) | Approve | ||
Review via email: mp+87039@code.launchpad.net |
Commit message
[FIX] fixed bug creating the lot sequence. name was False in the method create (in product_
Description of the change
There was an error creating a sequence in the create method of product_
product.name was False. I'm using vals["name"] instead. For the explanation I've copied this from product_
def create(self, cr, uid, vals, context=None):
#TAKE CARE for inherits objects openerp will create firstly the product_template and after the product_product
# and so the duplicated fields (duplicated field = field which are on the template and on the variant) will be on the product_template and not on the product_product
#Also when a product is created the duplicated field are empty for the product.product, this is why the field name can not be a required field
#This should be fix in the orm in the futur
ids = super(product_
####### write the value in the product_product