Hedging setup
This commit is contained in:
@@ -12,22 +12,42 @@ class PurchaseConfiguration(metaclass=PoolMeta):
|
||||
|
||||
allow_modification_after_validation = fields.Boolean(
|
||||
"Autorise modification after validation")
|
||||
auto_hedging = fields.Boolean("Auto hedge")
|
||||
auto_hedging_over = fields.Boolean("Over hedge")
|
||||
|
||||
@classmethod
|
||||
def default_allow_modification_after_validation(cls):
|
||||
return False
|
||||
|
||||
@classmethod
|
||||
def default_auto_hedging(cls):
|
||||
return False
|
||||
|
||||
@classmethod
|
||||
def default_auto_hedging_over(cls):
|
||||
return False
|
||||
|
||||
|
||||
class SaleConfiguration(metaclass=PoolMeta):
|
||||
__name__ = 'sale.configuration'
|
||||
|
||||
allow_modification_after_validation = fields.Boolean(
|
||||
"Autorise modification after validation")
|
||||
auto_hedging = fields.Boolean("Auto hedge")
|
||||
auto_hedging_over = fields.Boolean("Over hedge")
|
||||
|
||||
@classmethod
|
||||
def default_allow_modification_after_validation(cls):
|
||||
return False
|
||||
|
||||
@classmethod
|
||||
def default_auto_hedging(cls):
|
||||
return False
|
||||
|
||||
@classmethod
|
||||
def default_auto_hedging_over(cls):
|
||||
return False
|
||||
|
||||
|
||||
class AccountConfiguration(metaclass=PoolMeta):
|
||||
__name__ = 'account.configuration'
|
||||
|
||||
Reference in New Issue
Block a user