Merge lp:~openerp-dev/openobject-addons/6.1-opw-579389-nep into lp:openobject-addons/6.1
Proposed by
Nehal Panchal (OpenERP)
Status: | Approved |
---|---|
Approved by: | Naresh(OpenERP) |
Approved revision: | 7004 |
Proposed branch: | lp:~openerp-dev/openobject-addons/6.1-opw-579389-nep |
Merge into: | lp:openobject-addons/6.1 |
Diff against target: |
25 lines (+5/-2) 1 file modified
sale/sale.py (+5/-2) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-579389-nep |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nehal Panchal (OpenERP) (community) | Needs Resubmitting | ||
Naresh(OpenERP) (community) | Needs Fixing | ||
Review via email: mp+126430@code.launchpad.net |
Description of the change
Hello,
Invoice date of Create Invoices wizard is not considered while creating invoices.
Steps to reproduce:
1. Create Sales Order and confirm it.
2. Create Invoices through wizard and provide the Invoice date.
Provided date will not be shown in generated invoice.
This fixes the issue.
Thanks
To post a comment you must log in.
Unmerged revisions
- 7004. By Nehal Panchal (OpenERP)
-
[FIX] sale : Invoice date of Create Invoices wizard is not considered while creating invoices
- return i.id 'date_inv' ]})
18 + if context:
19 + invoice.write(cr, uid, [i.id], {'date_invoice': context[
20 + continue
your code will break if there is no date_invoice key in the context. has_key( date_inv) if there is no date then its useless to call a write here. also use context. get(date_ inv) to get the value.
The check should be for date exist in context i.e context.
Thanks,
Naresh