diff options
| author | FIN-IT_AndriFP <it@fixcomart.co.id> | 2025-10-13 08:56:20 +0700 |
|---|---|---|
| committer | FIN-IT_AndriFP <it@fixcomart.co.id> | 2025-10-13 08:56:20 +0700 |
| commit | a9eac2968018d74c190ac376ce2b874e32ded3b6 (patch) | |
| tree | 0c675d880a0a7d7ea873e328f4eb20955cb10342 /indoteknik_custom/models/domain_apo.py | |
| parent | 812bdbebbbe1cc0b1cc6294491f7771a668a04bd (diff) | |
| parent | 10ddd8835a98bbfe58abedf6a405929dfbbb76d0 (diff) | |
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into pum-v3
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) |
