diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-03-19 15:53:03 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-03-19 15:53:03 +0700 |
| commit | e974277e3b716fdeb95b115ecd6cc78c48efc55e (patch) | |
| tree | 0396407f16a35801088baafd9b32ccaa5fb590a9 /indoteknik_custom/models | |
| parent | 2440436fd96cc64929b4581ab7fd86cc74381443 (diff) | |
| parent | 503e37ac0a2ed3e2f0ec4ef277f94da602ccd370 (diff) | |
Merge branch 'production' of bitbucket.org:altafixco/indoteknik-addons into production
Diffstat (limited to 'indoteknik_custom/models')
| -rwxr-xr-x | indoteknik_custom/models/purchase_pricelist.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indoteknik_custom/models/purchase_pricelist.py b/indoteknik_custom/models/purchase_pricelist.py index 309beab7..d61fe70e 100755 --- a/indoteknik_custom/models/purchase_pricelist.py +++ b/indoteknik_custom/models/purchase_pricelist.py @@ -17,9 +17,12 @@ class PurchasePricelist(models.Model): system_last_update = fields.Datetime(string='System Update') count_trx_po = fields.Integer(string='Count Trx Product') count_trx_po_vendor = fields.Integer(string='Count Trx Vendor') - taxes_product_id = fields.Many2one('account.tax', string='Taxes Human', domain=[('type_tax_use', '=', 'purchase')]) - taxes_system_id = fields.Many2one('account.tax', string='Taxes System') + taxes_product_id = fields.Many2one('account.tax', string='Human Tax', domain=[('type_tax_use', '=', 'purchase')]) + taxes_system_id = fields.Many2one('account.tax', string='System Tax') include_price = fields.Float(string='Final Price', readonly=True) + brand_id = fields.Many2one('x_manufactures', string='Brand') + count_brand_vendor = fields.Integer(string='Count Brand Vendor') + @api.depends('product_id', 'vendor_id') def _compute_name(self): self.name = self.vendor_id.name + ', ' + self.product_id.name |
