summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fixco_custom/models/account_move_line.py1
-rw-r--r--fixco_custom/views/account_move_line.xml21
2 files changed, 12 insertions, 10 deletions
diff --git a/fixco_custom/models/account_move_line.py b/fixco_custom/models/account_move_line.py
index 1f4ed9d..a2a6e02 100644
--- a/fixco_custom/models/account_move_line.py
+++ b/fixco_custom/models/account_move_line.py
@@ -6,6 +6,7 @@ class AccountMoveLine(models.Model):
qty_outstanding = fields.Float(string='Qty Outstanding', compute='_compute_qty_outstanding')
invoice_marketplace = fields.Text("Invoice Mearketplace", compute='_compute_invoice_marketplace')
+ faktur_pajak = fields.Char(string='Faktur Pajak', related='move_id.faktur_pajak')
def action_gl_reconcile(self):
lines = self
diff --git a/fixco_custom/views/account_move_line.xml b/fixco_custom/views/account_move_line.xml
index 245bdfe..5b55729 100644
--- a/fixco_custom/views/account_move_line.xml
+++ b/fixco_custom/views/account_move_line.xml
@@ -1,16 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
-<record id="view_move_line_tree_gl_invoice_mp" model="ir.ui.view">
- <field name="name">account.move.line.tree.gl.invoice.marketplace</field>
- <field name="model">account.move.line</field>
- <field name="inherit_id" ref="account.view_move_line_tree_grouped_general"/>
- <field name="arch" type="xml">
- <xpath expr="//field[@name='name']" position="after">
- <field name="invoice_marketplace" optional="hide"/>
- </xpath>
- </field>
-</record>
+ <record id="view_move_line_tree_gl_invoice_mp" model="ir.ui.view">
+ <field name="name">account.move.line.tree.gl.invoice.marketplace</field>
+ <field name="model">account.move.line</field>
+ <field name="inherit_id" ref="account.view_move_line_tree_grouped_general"/>
+ <field name="arch" type="xml">
+ <xpath expr="//field[@name='name']" position="after">
+ <field name="invoice_marketplace" optional="hide"/>
+ <field name="faktur_pajak" optional="hide"/>
+ </xpath>
+ </field>
+ </record>
</data>
<data>
<record id="action_gl_reconcile_server" model="ir.actions.server">