diff options
| author | FIN-IT_AndriFP <it@fixcomart.co.id> | 2025-10-10 14:49:13 +0700 |
|---|---|---|
| committer | FIN-IT_AndriFP <it@fixcomart.co.id> | 2025-10-10 14:49:13 +0700 |
| commit | 10ddd8835a98bbfe58abedf6a405929dfbbb76d0 (patch) | |
| tree | a61cea71a2e732a70d20fcbcc271d79e69ded02c /indoteknik_custom/models/domain_apo.py | |
| parent | b0d0e26965ab1ba7aa0c5a607cc0a12a67546dfc (diff) | |
| parent | e4b191155bf44bfcd58d6ae1b95d4a112bd43547 (diff) | |
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into odoo-backup
Diffstat (limited to 'indoteknik_custom/models/domain_apo.py')
| -rw-r--r-- | indoteknik_custom/models/domain_apo.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indoteknik_custom/models/domain_apo.py b/indoteknik_custom/models/domain_apo.py new file mode 100644 index 00000000..585dd24c --- /dev/null +++ b/indoteknik_custom/models/domain_apo.py @@ -0,0 +1,12 @@ +from odoo import models, fields + + +class ApoDomainConfig(models.Model): + _name = 'apo.domain.config' + _description = 'Automatic Purchase Domain Config' + + name = fields.Char(string="Config Name", required=True) + vendor_id = fields.Many2one('res.partner', string="Vendor", required=True, domain=[('supplier_rank', '>', 0)]) + brand_ids = fields.Many2many('x_manufactures', string="Special Brands") + payment_term_id = fields.Many2one('account.payment.term', string="Payment Term") + is_special = fields.Boolean(string="Special Vendor?", default=False) |
