Commit 42bfbda6 authored by Jérome Perrin's avatar Jérome Perrin

document base_contribution parameter from Order.getTotalPrice

parent 5d0db8f0
......@@ -65,9 +65,13 @@ class Order(Delivery):
Whenever delivery is there, delivery has priority
"""
return 0
def getTotalPrice(self, **kw) :
"""Returns the total price for this Order. """
"""Returns the total price for this Order.
If base_contribution is passed, the trade model lines will be used to
include movements that will be generated.
"""
rounding = kw.get('rounding')
if kw.get('base_contribution') is None:
kw.setdefault('portal_type', self.getPortalOrderMovementTypeList())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment