-
- Downloads
[FIX] point_of_sale: prevent traceback while name of coins/bill is string
When we input some string in many2many field under Coins/Bills in configuration
setting of point of sale module . it will give an error with the message -
'could not convert string to float'
Steps to Produce:-
1. Go to Point of Sale then configuration
2. click on 'Settings'
3. Under 'Payment' input some string in Coins/Bills
Trace-back will be generated.
Reason -
The 'name_create' method of the 'pos_bill' model generates an error when a
string is provided as input for the 'name' field, since the expression
'float(name)' is unable to convert a string to a float.
Applying these changes will resolve this issue.
Sentry - 4122478677
closes odoo/odoo#120207
Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
Please register or sign in to comment