diff options
| -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 4205e37..5af0cfc 100644 --- a/fixco_custom/views/account_move.xml +++ b/fixco_custom/views/account_move.xml @@ -127,6 +127,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> |
