mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[MIG] base_global_discount: Migration to 14.0
This commit is contained in:
committed by
Kiril Vangelovski
parent
4081b81fe5
commit
d0f1b22def
@@ -30,11 +30,11 @@ class GlobalDiscount(models.Model):
|
||||
return result
|
||||
|
||||
def _get_global_discount_vals(self, base, **kwargs):
|
||||
""" Prepare the dict of values to create to obtain the discounted
|
||||
amount
|
||||
"""Prepare the dict of values to create to obtain the discounted
|
||||
amount
|
||||
|
||||
:param float base: the amount to discount
|
||||
:return: dict with the discounted amount
|
||||
:param float base: the amount to discount
|
||||
:return: dict with the discounted amount
|
||||
"""
|
||||
self.ensure_one()
|
||||
return {
|
||||
|
||||
@@ -25,7 +25,7 @@ class ResPartner(models.Model):
|
||||
# HACK: Looks like UI doesn't behave well with Many2many fields and
|
||||
# negative groups when the same field is shown. In this case, we want to
|
||||
# show the readonly version to any not in the global discount group.
|
||||
# TODO: Check in v14 if it's fixed
|
||||
# TODO: Check in future versions if it's fixed
|
||||
customer_global_discount_ids_readonly = fields.Many2many(
|
||||
string="Sale Global Discounts (readonly)",
|
||||
related="customer_global_discount_ids",
|
||||
|
||||
Reference in New Issue
Block a user