Add default unit price digits when not digits in config file
This commit is contained in:
parent
18cefbd7af
commit
eeb042d8e7
|
@ -7,7 +7,7 @@ from trytond.pyson import Eval, PYSONEncoder
|
|||
from trytond.wizard import Wizard, StateView, StateAction, StateTransition, \
|
||||
Button
|
||||
from trytond.config import config
|
||||
DIGITS = int(config.get('digits', 'unit_price_digits'))
|
||||
DIGITS = int(config.get('digits', 'unit_price_digits', 4))
|
||||
|
||||
__all__ = ['ProductOneClickView', 'ProductOneClick']
|
||||
|
||||
|
|
Loading…
Reference in New Issue