diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-01-23 11:05:12 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-01-23 11:05:12 +0700 |
| commit | 5c07394e695ee3e92d7dfa55f46bf566afb90a7c (patch) | |
| tree | 4108fa9fa5392b1f98bca8fb271cec890e872f26 | |
| parent | dea8f6a132070986581706b8348f01f7c8ad8c2f (diff) | |
filter domain taxes human
| -rwxr-xr-x | indoteknik_custom/models/purchase_pricelist.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_pricelist.py b/indoteknik_custom/models/purchase_pricelist.py index 98f51d03..43efb7b5 100755 --- a/indoteknik_custom/models/purchase_pricelist.py +++ b/indoteknik_custom/models/purchase_pricelist.py @@ -16,7 +16,7 @@ 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') + 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', readonly=True) include_price = fields.Float(string='Final Price', readonly=True) @api.depends('product_id', 'vendor_id') |
