diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-11-06 15:04:16 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-11-06 15:04:16 +0700 |
| commit | 449a3f3a3acaeb0b950f57daee1067d70d483d90 (patch) | |
| tree | 1ad451faa953ff539ebf51092f53ff07fb6c7b7f | |
| parent | dd51ce73e27cd7639b512a219e7bc68bb467b4d3 (diff) | |
<Miqdad> show desc false altama
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index 8772dea9..4475e777 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -118,17 +118,9 @@ class PurchaseOrder(models.Model): show_description = fields.Boolean( string='Show Description', - compute='_compute_show_description', default=True ) - @api.depends('partner_id') - def _compute_show_description(self): - for order in self: - if order.partner_id.id == 5571: - order.show_description = False - else: - order.show_description = order.show_description @api.onchange('show_description') def onchange_show_description(self): |
