mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[IMP] base_global_discount: black, isort, prettier
This commit is contained in:
committed by
Omar (Comunitea)
parent
5326fd2a29
commit
bfda1e6a6a
@@ -4,19 +4,19 @@ from odoo import fields, models
|
||||
|
||||
|
||||
class ResPartner(models.Model):
|
||||
_inherit = 'res.partner'
|
||||
_inherit = "res.partner"
|
||||
|
||||
customer_global_discount_ids = fields.Many2many(
|
||||
comodel_name='global.discount',
|
||||
column1='partner_id',
|
||||
column2='global_discount_id',
|
||||
string='Sale Global Discounts',
|
||||
domain=[('discount_scope', '=', 'sale')],
|
||||
comodel_name="global.discount",
|
||||
column1="partner_id",
|
||||
column2="global_discount_id",
|
||||
string="Sale Global Discounts",
|
||||
domain=[("discount_scope", "=", "sale")],
|
||||
)
|
||||
supplier_global_discount_ids = fields.Many2many(
|
||||
comodel_name='global.discount',
|
||||
column1='partner_id',
|
||||
column2='global_discount_id',
|
||||
string='Purchase Global Discounts',
|
||||
domain=[('discount_scope', '=', 'purchase')],
|
||||
comodel_name="global.discount",
|
||||
column1="partner_id",
|
||||
column2="global_discount_id",
|
||||
string="Purchase Global Discounts",
|
||||
domain=[("discount_scope", "=", "purchase")],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user