diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-04-29 09:24:25 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-04-29 09:24:25 +0700 |
| commit | 074b99031f5123976bb67aab1cf1a6286464e724 (patch) | |
| tree | 2809d42a13b35c42ec00d93a40a414e7713a1bc2 /indoteknik_custom/models/commision.py | |
| parent | b5a42eda62ae2b3536a072b9cb21a61e91a7b49a (diff) | |
| parent | ca03f0119e33dd62adbf998106378d8e0f4096b6 (diff) | |
Merge branch 'production' into feature/request-by-abl
Diffstat (limited to 'indoteknik_custom/models/commision.py')
| -rw-r--r-- | indoteknik_custom/models/commision.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/commision.py b/indoteknik_custom/models/commision.py index e60fe9a7..7ec2cecc 100644 --- a/indoteknik_custom/models/commision.py +++ b/indoteknik_custom/models/commision.py @@ -152,6 +152,7 @@ class CustomerCommision(models.Model): account_name = fields.Char(string='Account Name', tracking=3) bank_account = fields.Char(string='Account No', tracking=3) note_transfer = fields.Char(string='Keterangan') + brand_ids = fields.Many2many('x_manufactures', string='Brands') # add status for type of commision, fee, rebate / cashback # include child or not? @@ -250,7 +251,7 @@ class CustomerCommision(models.Model): partners = rec.partner_ids for partner in partners: - brand = [92, 10, 89, 12, 324, 11] + brand = [int(brand) for brand in rec.brand_ids] where = [ ('move_id.move_type', '=', 'out_invoice'), ('move_id.state', '=', 'posted'), |
