Merge lp:~akretion-team/openobject-addons/purchase_dates_refactor into lp:openobject-addons
Proposed by
Benoit Guillot - http://www.akretion.com
Status: | Merged |
---|---|
Merged at revision: | 6153 |
Proposed branch: | lp:~akretion-team/openobject-addons/purchase_dates_refactor |
Merge into: | lp:openobject-addons |
Diff against target: |
31 lines (+11/-3) 1 file modified
purchase/purchase.py (+11/-3) |
To merge this branch: | bzr merge lp:~akretion-team/openobject-addons/purchase_dates_refactor |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Olivier Dony (Odoo) | Approve | ||
Raphaël Valyi - http://www.akretion.com (community) | Needs Fixing | ||
Review via email: mp+86670@code.launchpad.net |
Description of the change
This is a refactoring of schedule_date and order_dates in order to overload them easily. I just defined 2 new functions : _get_schedule_date and _get_order_dates. I need it for a module calculating the expeditions considering the working time.
To post a comment you must log in.
Hello Benoit,
I'm not 100% sure, but I suggest you change the signature of the methods you are introducing so that you pass the procurement object. That may allow to to access exra product or partner or order delay properties to compute the dates with more flexibility. Else please can you justify your choice not to pass the procurement object?
Regards.