Merge lp:~akretion-team/openobject-addons/trunk-payment-term-on-purchase into lp:openobject-addons
Status: | Rejected |
---|---|
Rejected by: | qdp (OpenERP) |
Proposed branch: | lp:~akretion-team/openobject-addons/trunk-payment-term-on-purchase |
Merge into: | lp:openobject-addons |
Diff against target: |
102 lines (+18/-11) 4 files modified
purchase/purchase.py (+15/-6) purchase/purchase_view.xml (+1/-0) purchase/stock.py (+1/-0) purchase/wizard/purchase_line_invoice.py (+1/-5) |
To merge this branch: | bzr merge lp:~akretion-team/openobject-addons/trunk-payment-term-on-purchase |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
qdp (OpenERP) | Disapprove | ||
Raphaël Valyi - http://www.akretion.com (community) | Approve | ||
Review via email: mp+90872@code.launchpad.net |
Description of the change
On the sale orders, we have a 'Payment term' field (copied from the partner by the onchange on partner_id) that we can personnalise for a particular sale order, and that is used when generating the invoice... but there is no such thing on purchase orders !
This merge proposal adds payment_term on purchase.order object.
The behavior of payment_term is the same as for the sale order :
- the payment_term is copied from the partner to the purchase order (by the onchange on partner_id)
- then it is copied from the purchase order to the supplier invoice
Unmerged revisions
- 6457. By Alexis de Lattre
-
Remove my code change on fiscal_position (it had no impact... but I guess it is better not to change anything else)
- 6456. By Alexis de Lattre
-
Add payment_term on purchase.order object.
The behavior of payment_term is the same as for the sale order :
- the payment_term is copied from the partner to the purchase order
- then it is copied from the purchase order to the supplier invoice
Add payment_term to the purchase.order form view, next to fiscal position (same as for sale.order form view)
Hello Alexis,
this feature is long awaited and Renato and me confirm such a merge would save us from always doing this customization.
Now, I think you did little mistakes in manipulating Python boolean expressions, look lines 30 and 31 of the diff, you have code like: property_ account_ position. id or False property_ account_ position and supplier. property_ account_ position. id or False.id or False
'fiscal_position': supplier.
it should instead be supplier.
I believe there is the same error line 51 also.
Please fix that then it would be OK for me. Thanks for all that work, this is very good for the OpenERP product.