Merge lp:~agilebg/sale-wkfl/adding_product_customer_code_sale_7 into lp:~sale-core-editors/sale-wkfl/7.0
Proposed by
Nicola Malcontenti - Agile BG
Status: | Merged |
---|---|
Merged at revision: | 43 |
Proposed branch: | lp:~agilebg/sale-wkfl/adding_product_customer_code_sale_7 |
Merge into: | lp:~sale-core-editors/sale-wkfl/7.0 |
Diff against target: |
232 lines (+201/-0) 6 files modified
product_customer_code_sale/__init__.py (+21/-0) product_customer_code_sale/__openerp__.py (+44/-0) product_customer_code_sale/i18n/it.po (+28/-0) product_customer_code_sale/i18n/product_customer_code_sale.pot (+27/-0) product_customer_code_sale/sale.py (+54/-0) product_customer_code_sale/sale_view.xml (+27/-0) |
To merge this branch: | bzr merge lp:~agilebg/sale-wkfl/adding_product_customer_code_sale_7 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guewen Baconnier @ Camptocamp | code review | Approve | |
Lorenzo Battistini (community) | code review | Approve | |
Review via email: mp+202468@code.launchpad.net |
Description of the change
Based on product_
This module depends on https:/
To post a comment you must log in.
Thanks
Notes (but I won't block the MP for that):
You don't need to do
176 + if context is None:
177 + context = {}
When the context is not accessed within the method.
You should prefer self.pool[ 'product. customer. code'] over self.pool. get('product. customer. code') because it the model is missing for some reason, it will fail directly with a KeyError rather than some lines below with a more obscure error (AttributeError: 'NoneType' object has no attribute 'browse')