summaryrefslogtreecommitdiff
path: root/addons/hr_contract/models
diff options
context:
space:
mode:
authorNaglis Jonaitis <naglis@mailbox.org>2019-07-31 12:11:56 +0000
committerMartin Trigaux <mat@odoo.com>2019-08-02 11:17:12 +0000
commit0fe2b4530f97de35a7aa78beb6265f4a5dcef55d (patch)
treef072ceda50dd693b4cc7cb2518a47e09d9f3ad83 /addons/hr_contract/models
parent914a722f814f5d922a930f2e9554497825a0ad90 (diff)
[IMP] *: remove `digits` attribute from Monetary fields
* account, hr_contract, hr_expense, point_of_sale, sale_margin, website_sale_delivery, website_sale_wishlist digits only works on Float fields, on Monetary fields it has no effect: - The column_type of a monetary field is always numeric - It is not applied in `convert_to_column()` or `convert_to_cache()` - It is not part of `description_attrs`, so it will not be included in the output of `fields_get()` closes odoo/odoo#35336 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/hr_contract/models')
-rw-r--r--addons/hr_contract/models/hr_contract.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_contract/models/hr_contract.py b/addons/hr_contract/models/hr_contract.py
index b9a54ff2871..64aec5ea1b8 100644
--- a/addons/hr_contract/models/hr_contract.py
+++ b/addons/hr_contract/models/hr_contract.py
@@ -28,7 +28,7 @@ class Contract(models.Model):
resource_calendar_id = fields.Many2one(
'resource.calendar', 'Working Schedule',
default=lambda self: self.env.company.resource_calendar_id.id)
- wage = fields.Monetary('Wage', digits=(16, 2), required=True, tracking=True, help="Employee's monthly gross wage.")
+ wage = fields.Monetary('Wage', required=True, tracking=True, help="Employee's monthly gross wage.")
advantages = fields.Text('Advantages')
notes = fields.Text('Notes')
state = fields.Selection([