summaryrefslogtreecommitdiff
path: root/fixco_custom/views
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2026-01-14 03:32:56 +0000
committerIT Fixcomart <it@fixcomart.co.id>2026-01-14 03:32:56 +0000
commitd7cafd5a4db30b08dceabf8999a0903b6871368d (patch)
treea464c57c47fa80101933faaec0b7458cba605d8a /fixco_custom/views
parent7eb25a9ae2ef304503749f8023b8d2f5e2a2e58f (diff)
parentc4a4653e4065789a9c1baa97e91709ea52a6131e (diff)
Merged in bills_add_item_po (pull request #3)
Bills add item po
Diffstat (limited to 'fixco_custom/views')
-rw-r--r--fixco_custom/views/account_move.xml13
-rw-r--r--fixco_custom/views/purchase_order.xml1
-rw-r--r--fixco_custom/views/purchase_order_line_wizard.xml37
3 files changed, 50 insertions, 1 deletions
diff --git a/fixco_custom/views/account_move.xml b/fixco_custom/views/account_move.xml
index 5af0cfc..4869981 100644
--- a/fixco_custom/views/account_move.xml
+++ b/fixco_custom/views/account_move.xml
@@ -33,6 +33,17 @@
<!-- <button name="approve_refund" string="Approved Pengajuan Refund"
type="object" class="btn-primary" attrs="{'invisible': [('state', '!=', 'posted'), ('move_type', '!=', 'entry'), ('approval_refund', 'in', ('approved','rejected'))]}"/> -->
</button>
+ <xpath expr="//header" position="inside">
+ <button name="action_open_po_item_wizard"
+ type="object"
+ string="Add PO Items"
+ class="oe_highlight"
+ attrs="{'invisible': ['|',
+ ('move_type','!=','in_invoice'),
+ ('state','!=','draft')
+ ]}"/>
+ </xpath>
+
<button name="open_reconcile_view" position="after">
<button type="object" name="action_view_related_payment"
@@ -189,4 +200,4 @@
<field name="code">action = records.queue_job_cancel_bill()</field>
</record>
</data>
-</odoo> \ No newline at end of file
+</odoo>
diff --git a/fixco_custom/views/purchase_order.xml b/fixco_custom/views/purchase_order.xml
index cb85374..d254c92 100644
--- a/fixco_custom/views/purchase_order.xml
+++ b/fixco_custom/views/purchase_order.xml
@@ -59,6 +59,7 @@
<field name="altama_ordered" optional="hide" readonly="1"/>
<field name="altama_delivered" optional="hide" readonly="1"/>
<field name="altama_invoiced" optional="hide" readonly="1"/>
+ <field name="bill_remain" readonly="1"/>
</field>
</field>
</record>
diff --git a/fixco_custom/views/purchase_order_line_wizard.xml b/fixco_custom/views/purchase_order_line_wizard.xml
new file mode 100644
index 0000000..bce3667
--- /dev/null
+++ b/fixco_custom/views/purchase_order_line_wizard.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<odoo>
+ <data>
+
+ <record id="view_po_line_wizard_form" model="ir.ui.view">
+ <field name="name">purchase.order.line.wizard.form</field>
+ <field name="model">purchase.order.line.wizard</field>
+ <field name="arch" type="xml">
+ <form string="Select PO Items">
+ <group>
+ <field name="line_ids">
+ <tree editable="bottom">
+ <field name="order_id" readonly="1"/>
+ <field name="product_id" readonly="1"/>
+ <field name="bill_remain" readonly="1"/>
+ <field name="qty_invoiced" readonly="1"/>
+ <field name="product_qty" readonly="1"/>
+ </tree>
+ </field>
+ </group>
+
+ <footer>
+ <button string="Add"
+ type="object"
+ name="action_add_lines"
+ class="btn-primary"/>
+ <button string="Cancel"
+ class="btn-secondary"
+ special="cancel"/>
+ </footer>
+ </form>
+ </field>
+ </record>
+
+ </data>
+</odoo>
+