diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-04-29 06:30:50 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-04-29 06:30:50 +0000 |
| commit | 1c0c7be74b11371299bead2626840b3ebc2632f7 (patch) | |
| tree | 14e43d531e420cedb3f69956c2e5b75e81a2345e /indoteknik_custom/models/commision.py | |
| parent | 09c3b3a6a706d176f61bf89fc7acb690650b528c (diff) | |
| parent | a5727ae0dd3f82bf22b888125d924520833838b4 (diff) | |
Merged in feature/request-by-abl (pull request #140)
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'), |
