diff --git a/product/ERP5/Document/Movement.py b/product/ERP5/Document/Movement.py index a105ceac079b682024be09ad548ac9cf6dc30432..e52a05dd077a7274b2480cd6887b88fe5d4cb787 100644 --- a/product/ERP5/Document/Movement.py +++ b/product/ERP5/Document/Movement.py @@ -259,7 +259,7 @@ class Movement(XMLObject, Amount): # context.getPrice(context=context) # instead of: # context.getPrice(context) - if isinstance(default, Base) and context is None: + if isinstance(default, Base): msg = 'getPrice first argument is supposed to be the default value'\ ' accessor, the context should be passed as with the context='\ ' keyword argument'