diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-08-02 09:29:28 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-08-02 09:29:28 +0700 |
| commit | 647df532baf5452c3d6d89b8acbd30dd4fb0ea11 (patch) | |
| tree | 964c3a499a249f03743a86b0f85f57b848acc2eb | |
| parent | f371d548f434fac43595dffd9125f1d63f978157 (diff) | |
domain source
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 3f25b100..e83ded6c 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -89,7 +89,7 @@ class SaleOrder(models.Model): purchase_total = fields.Monetary(string='Purchase Total', compute='_compute_purchase_total') voucher_id = fields.Many2one(comodel_name='voucher', string='Voucher') amount_voucher_disc = fields.Float(string='Voucher Discount') - source_id = fields.Many2one('utm.source', 'Source') + source_id = fields.Many2one('utm.source', 'Source', domain="[('id', 'in', [32, 59, 60, 61])]") def _compute_purchase_total(self): for order in self: |
