Merge lp:~yannick-buron/sale-wkfl/sale-wkfl into lp:~sale-core-editors/sale-wkfl/7.0
Status: | Work in progress |
---|---|
Proposed branch: | lp:~yannick-buron/sale-wkfl/sale-wkfl |
Merge into: | lp:~sale-core-editors/sale-wkfl/7.0 |
Diff against target: |
339 lines (+314/-0) 5 files modified
sale_advance_invoice/__init__.py (+23/-0) sale_advance_invoice/__openerp__.py (+55/-0) sale_advance_invoice/invoice.py (+63/-0) sale_advance_invoice/sale.py (+156/-0) sale_advance_invoice/sale_view.xml (+17/-0) |
To merge this branch: | bzr merge lp:~yannick-buron/sale-wkfl/sale-wkfl |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Pedro Manuel Baeza | Needs Resubmitting | ||
Leonardo Pistone | Abstain | ||
Review via email:
|
Commit message
Add sale_advance_
Description of the change
Add the module sale_advance_
Essentially, some of my customers were shocked by the negative amount in final invoice when OpenERP create the final invoice.
I created two new behavior :
-Progressive, the final invoice will only have the remaining amount, we don't touch the advance invoices.
-Complete final invoice, when we launch the final invoice we refund the advance invoice and reassign payment to the final invoice.
The complete final invoice feature was developed for the customer "Destock Meubles", a furniture distributor, one year ago. Due to the long time needed to deliver the furniture and the french law, they absolutely needed advance invoices and at the end complete invoice so I had to develop the feature. For the record, everything was automated and integrated with magentoerpconnect, which mean that the advance invoice and final invoice were created at the import order.
The code was still quite ugly at this time so I didn't merge it in community addons. But currently, another customer asked me to remove the deduction amount and so I saw the opportunity to introduce a simpler mode, progressive, clean the module and finally merge it with OCA.
I hope this will be useful to some people. I really think that negative amount is bad on the final invoice, and even illegal regarding some legislation like the french one.
Unmerged revisions
- 32. By yannick@yannick_buron.synerpgy.fr
-
Add sale_advance_
invoice
Hi, Yannick, I think that your functionality overlaps the one of the sale_order_ partial_ invoice module that is on account-invoicing repository. It is there because it can be considered as an "invoicing" action. I think that it's more suitable to improve this module, if there is room for it, instead of providing another one with a similar approach.
If I am wrong, please tell me. Until then, I'm going to set this as Disapprove.
Regards.