summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-05-30 16:09:35 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-05-30 16:09:35 +0700
commit65fe5e9cb0865293eb6d0626d2c99f35d6862b3c (patch)
tree9b101f91df2be5e08a489991579b9edd691cbdfd /indoteknik_custom/views
parentc0bc0039928cdb7e2eef8e39dc5daad6e5ecfc28 (diff)
add invoice_date_due and terima faktur on bills
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/account_move.xml13
-rw-r--r--indoteknik_custom/views/account_move_multi_update_bills.xml33
2 files changed, 46 insertions, 0 deletions
diff --git a/indoteknik_custom/views/account_move.xml b/indoteknik_custom/views/account_move.xml
index 1be6d118..93145fea 100644
--- a/indoteknik_custom/views/account_move.xml
+++ b/indoteknik_custom/views/account_move.xml
@@ -111,6 +111,8 @@
<field name="bill_day_to_due" string="Due Date" widget="remaining_days"/>
<field name="is_efaktur_uploaded" optional="hide"/>
<field name="is_invoice_uploaded" optional="hide"/>
+ <field name="invoice_date"/>
+ <field name="invoice_date_due"/>
</field>
<field name="invoice_date_due" position="attributes">
@@ -131,6 +133,9 @@
{'column_invisible': [('parent.move_type', '!=', 'in_invoice')]}
</attribute>
</field>
+ <field name="invoice_incoterm_id" position="after">
+ <field name="date_terima_tukar_faktur"/>
+ </field>
</field>
</record>
@@ -141,6 +146,14 @@
<field name="state">code</field>
<field name="code">action = records.open_form_multi_update()</field>
</record>
+
+ <record id="account_move_multi_update_bills_ir_actions_server" model="ir.actions.server">
+ <field name="name">Update Terima Faktur Bills</field>
+ <field name="model_id" ref="account.model_account_move"/>
+ <field name="binding_model_id" ref="account.model_account_move"/>
+ <field name="state">code</field>
+ <field name="code">action = records.open_form_multi_update_bills()</field>
+ </record>
<record id="account_move_multi_create_reklas_ir_actions_server" model="ir.actions.server">
<field name="name">Create Reklas Penjualan</field>
diff --git a/indoteknik_custom/views/account_move_multi_update_bills.xml b/indoteknik_custom/views/account_move_multi_update_bills.xml
new file mode 100644
index 00000000..73f92d16
--- /dev/null
+++ b/indoteknik_custom/views/account_move_multi_update_bills.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<odoo>
+ <data>
+ <record id="view_account_move_multi_update_form_bills" model="ir.ui.view">
+ <field name="name">Account Move Multi Update Bills</field>
+ <field name="model">account.move.multi_update_bills</field>
+ <field name="arch" type="xml">
+ <form>
+ <sheet>
+ <group>
+ <group>
+ <field name="date_terima_tukar_faktur" />
+ </group>
+ </group>
+ </sheet>
+ <footer>
+ <button name="save_multi_update_bills" string="Update" type="object" default_focus="1" class="oe_highlight"/>
+ <button string="Cancel" class="btn btn-secondary" special="cancel" />
+ </footer>
+ </form>
+ </field>
+ </record>
+
+ <record id="action_account_move_multi_update_bills" model="ir.actions.act_window">
+ <field name="name">Account Move Multi Update Bills</field>
+ <field name="res_model">account.move.multi_update_bills</field>
+ <field name="type">ir.actions.act_window</field>
+ <field name="view_mode">form</field>
+ <field name="view_id" ref="view_account_move_multi_update_form_bills"/>
+ <field name="target">new</field>
+ </record>
+ </data>
+</odoo> \ No newline at end of file