diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-11-26 10:08:16 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-11-26 10:08:16 +0700 |
| commit | 25edffb8ebf51e4b133132f4fbd49363b1426664 (patch) | |
| tree | 903a73bef338d0ddd1bed8577b276b318f37cc56 /fixco_custom/views | |
| parent | 29d10b8de8422a7c2ced1816d7cc7df41c20b73c (diff) | |
api altama
Diffstat (limited to 'fixco_custom/views')
| -rw-r--r-- | fixco_custom/views/account_move.xml | 15 | ||||
| -rw-r--r-- | fixco_custom/views/purchase_order.xml | 24 | ||||
| -rw-r--r-- | fixco_custom/views/token_log.xml | 33 |
3 files changed, 71 insertions, 1 deletions
diff --git a/fixco_custom/views/account_move.xml b/fixco_custom/views/account_move.xml index 3b122dd..8eb7975 100644 --- a/fixco_custom/views/account_move.xml +++ b/fixco_custom/views/account_move.xml @@ -57,6 +57,7 @@ <!-- ✅ Add the new Many2many field after invoice_vendor_bill_id --> <field name="invoice_vendor_bill_id" position="after"> <field name="purchase_id" invisible="1"/> + <field name="need_refund" invisible="1"/> <label for="purchase_vendor_bill_ids" string="Auto-Complete" class="oe_edit_only" attrs="{'invisible': ['|', ('state','!=','draft'), ('move_type', '!=', 'in_invoice')]}" /> @@ -116,6 +117,20 @@ </field> </record> + <record id="view_move_tree_inherit_need_refund" model="ir.ui.view"> + <field name="name">account.move.tree.need.refund</field> + <field name="model">account.move</field> + <field name="inherit_id" ref="account.view_invoice_tree"/> + <field name="arch" type="xml"> + <xpath expr="//tree" position="attributes"> + <attribute name="decoration-danger">need_refund</attribute> + </xpath> + <xpath expr="//tree" position="inside"> + <field name="need_refund" invisible="1"/> + </xpath> + </field> + </record> + <record id="action_export_faktur" model="ir.actions.server"> <field name="name">Export Faktur ke XML</field> <field name="model_id" ref="account.model_account_move" /> diff --git a/fixco_custom/views/purchase_order.xml b/fixco_custom/views/purchase_order.xml index 174929c..dc863bc 100644 --- a/fixco_custom/views/purchase_order.xml +++ b/fixco_custom/views/purchase_order.xml @@ -19,10 +19,25 @@ <button id="draft_confirm" position="after"> <button name="fixco_custom.action_view_uangmuka_pembelian" string="UangMuka" type="action" attrs="{'invisible': [('state', '!=', 'purchase')]}"/> + <button name="action_create_order_altama" + type="object" + string="Create Order Altama" + class="oe_highlight" + icon="fa-cloud-upload"/> + <button name="action_get_order_altama" + type="object" + string="Get Order Altama" + class="oe_highlight" + icon="fa-cloud-download"/> </button> - <field name="currency_id" position="after"> + <field name="fiscal_position_id" position="after"> + <field name="soo_number" invisible="1"/> + <field name="soo_price" readonly="1"/> + <field name="soo_discount" readonly="1"/> + <field name="soo_tax" readonly="1"/> <field name="sale_order_id" readonly="1"/> <field name="biaya_lain_lain"/> + <field name="shipping_cost"/> <field name="source"/> <field name="move_entry_id" readonly="1"/> </field> @@ -32,6 +47,13 @@ <field name="price_unit" position="after"> <field name="discount"/> <field name="discount_amount" optional="hide"/> + <field name="description" optional="hide"/> + <field name="docstatus_altama" optional="hide"/> + </field> + <field name="price_subtotal" position="after"> + <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> </field> </record> diff --git a/fixco_custom/views/token_log.xml b/fixco_custom/views/token_log.xml new file mode 100644 index 0000000..77e6dd4 --- /dev/null +++ b/fixco_custom/views/token_log.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<odoo> + <record id="token_log_tree" model="ir.ui.view"> + <field name="name">token.log.tree</field> + <field name="model">token.log</field> + <field name="arch" type="xml"> + <tree editable="top" default_order="create_date desc"> + <field name="token"/> + <field name="expires_at"/> + <field name="token_from"/> + <field name="created_at"/> + <field name="created_by"/> + <field name="source"/> + <field name="is_active" widget="boolean_toggle"/> + </tree> + </field> + </record> + + <record id="token_log_action" model="ir.actions.act_window"> + <field name="name">Token Log</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">token.log</field> + <field name="view_mode">tree,form</field> + </record> + + <menuitem + action="token_log_action" + id="token_log" + parent="base.menu_users" + name="Token Log" + sequence="1" + /> +</odoo> |
