Merge lp:~therp-nl/openerp-stock-delivery-times/7.0_lp1298520_crash_product_nocompany into lp:openerp-stock-delivery-times
Proposed by
Ronald Portier (Therp)
Status: | Merged |
---|---|
Merged at revision: | 111 |
Proposed branch: | lp:~therp-nl/openerp-stock-delivery-times/7.0_lp1298520_crash_product_nocompany |
Merge into: | lp:openerp-stock-delivery-times |
Diff against target: |
66 lines (+34/-2) 2 files modified
stock_delivery_times_advanced/__openerp__.py (+1/-1) stock_delivery_times_advanced/product.py (+33/-1) |
To merge this branch: | bzr merge lp:~therp-nl/openerp-stock-delivery-times/7.0_lp1298520_crash_product_nocompany |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Benoit Guillot - http://www.akretion.com | Approve | ||
Review via email: mp+213276@code.launchpad.net |
Description of the change
Fixes 1298520. PO lead is normally taken from the company defined in the product.
However, the code crashed when product did not refer to a company (products shared in multicompany install).
This change will take the company from the product, the context, the user, or the main company. If everything else fails, it will just return a PO lead time of zero days.
To post a comment you must log in.
Thank you for the fixes and the contributions !
Sorry for the delay ...