diff options
| author | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2025-11-19 14:22:14 +0700 |
|---|---|---|
| committer | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2025-11-19 14:22:14 +0700 |
| commit | 58623e9509789381dbe334969de647b4ad0302a4 (patch) | |
| tree | 32ed4a98888e388836e8b444f2a28ee8d3160ec6 | |
| parent | 029ecb4f6f82cadd930991a0e798cc2b19ad9e86 (diff) | |
| parent | 5235e97803db42387734696d7f52cd5cf0963132 (diff) | |
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into odoo-backup
| -rw-r--r-- | indoteknik_custom/models/refund_sale_order.py | 6 | ||||
| -rw-r--r-- | indoteknik_custom/views/stock_picking.xml | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/indoteknik_custom/models/refund_sale_order.py b/indoteknik_custom/models/refund_sale_order.py index c6db2174..cbc0b717 100644 --- a/indoteknik_custom/models/refund_sale_order.py +++ b/indoteknik_custom/models/refund_sale_order.py @@ -332,7 +332,8 @@ class RefundSaleOrder(models.Model): domain = [ ('journal_id', '=', 11), ('state', '=', 'posted'), - ('ref', 'ilike', 'uang muka penjualan') + ('ref', 'ilike', 'uang muka penjualan'), + ('ref', 'not ilike', 'reklas'), ] if so_names: domain += ['|'] * (len(so_names) - 1) @@ -696,7 +697,8 @@ class RefundSaleOrder(models.Model): domain = [ ('journal_id', '=', 11), ('state', '=', 'posted'), - ('ref', 'ilike', 'uang muka penjualan') + ('ref', 'ilike', 'uang muka penjualan'), + ('ref', 'not ilike', 'reklas'), ] domain += ['|'] * (len(so_names) - 1) for n in so_names: diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml index f3abb11e..bad85963 100644 --- a/indoteknik_custom/views/stock_picking.xml +++ b/indoteknik_custom/views/stock_picking.xml @@ -184,7 +184,7 @@ 'required': [['is_internal_use', '=', True]] }" /> - <field name="so_num"/> + <field name="so_num" attrs="{'invisible': [('picking_type_id', 'not in', [29,30,73,74])]}"/> </field> <field name="group_id" position="before"> <field name="date_reserved"/> |
