diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-03-24 16:06:36 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-03-24 16:06:36 +0700 |
| commit | 4ab719732e495ad2eb42ee8ea1c63dc875b98f1d (patch) | |
| tree | 8a847db61dc11ce0a9fa5f3411a26fefa7bee034 /indoteknik_custom | |
| parent | d7838ad087daf51826d3be27888df04eac09a293 (diff) | |
| parent | 567da97c5ed74db8e06d2bf846479d14fdc34c13 (diff) | |
Merge branch 'release' of bitbucket.org:altafixco/indoteknik-addons into release
Diffstat (limited to 'indoteknik_custom')
| -rw-r--r-- | indoteknik_custom/models/res_partner.py | 1 | ||||
| -rw-r--r-- | indoteknik_custom/views/stock_picking.xml | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/res_partner.py b/indoteknik_custom/models/res_partner.py index 1cdf7c72..ad88957f 100644 --- a/indoteknik_custom/models/res_partner.py +++ b/indoteknik_custom/models/res_partner.py @@ -6,3 +6,4 @@ class ResPartner(models.Model): reference_number = fields.Char(string="Reference Number") company_type_id = fields.Many2one('res.partner.company_type', string='Company Type') + custom_pricelist_id = fields.Many2one('product.pricelist', string='Price Matrix') diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml index 0ff79ea8..e4e9f722 100644 --- a/indoteknik_custom/views/stock_picking.xml +++ b/indoteknik_custom/views/stock_picking.xml @@ -34,7 +34,7 @@ <button name="action_create_invoice_from_mr" string="Create Bill" type="object" - attrs="{'invisible': [('state', '!=', 'done')]}" + attrs="{'invisible': ['|', ('state', '!=', 'done'), ('name', 'ilike', 'out')]}" /> </button> <field name="backorder_id" position="after"> |
