diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-01-14 10:32:32 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-01-14 10:32:32 +0700 |
| commit | d86b836c23dec0e3f45498d228ff5076d7903042 (patch) | |
| tree | a464c57c47fa80101933faaec0b7458cba605d8a | |
| parent | c4a4653e4065789a9c1baa97e91709ea52a6131e (diff) | |
| parent | 7eb25a9ae2ef304503749f8023b8d2f5e2a2e58f (diff) | |
Merge branch 'main' of https://bitbucket.org/altafixco/fixco-addons into bills_add_item_pobills_add_item_po
merge
| -rw-r--r-- | fixco_custom/models/purchase_order.py | 2 | ||||
| -rw-r--r-- | fixco_custom/views/account_move.xml | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/fixco_custom/models/purchase_order.py b/fixco_custom/models/purchase_order.py index 4bc9d11..3db2d04 100644 --- a/fixco_custom/models/purchase_order.py +++ b/fixco_custom/models/purchase_order.py @@ -73,7 +73,7 @@ class PurchaseOrder(models.Model): invoice_vals = { 'ref': self.partner_ref or '', 'move_type': move_type, - 'invoice_date': self.bill_date, + 'invoice_date': self.bill_date or fields.Date.today(), 'purchase_order_id': self.id, 'narration': self.notes, 'currency_id': self.currency_id.id, diff --git a/fixco_custom/views/account_move.xml b/fixco_custom/views/account_move.xml index 69c9b47..4869981 100644 --- a/fixco_custom/views/account_move.xml +++ b/fixco_custom/views/account_move.xml @@ -138,6 +138,24 @@ </field> </record> + <record id="view_account_invoice_filter_inherit_marketplace" model="ir.ui.view"> + <field name="name">account.move.filter.inherit.marketplace</field> + <field name="model">account.move</field> + <field name="inherit_id" ref="account.view_account_invoice_filter"/> + <field name="arch" type="xml"> + + <!-- Tambah filter di search --> + <xpath expr="//search" position="inside"> + <field name="invoice_marketplace" + string="Invoice Marketplace" + filter_domain="[ + ('invoice_marketplace', 'ilike', self) + ]"/> + </xpath> + + </field> + </record> + <record id="account_move_tree_inherit" model="ir.ui.view"> <field name="name">Account Move</field> <field name="model">account.move</field> |
