diff options
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/account_bank_statement.xml | 31 | ||||
| -rw-r--r-- | indoteknik_custom/views/customer_commision.xml | 189 | ||||
| -rw-r--r-- | indoteknik_custom/views/ir_sequence.xml | 10 | ||||
| -rwxr-xr-x | indoteknik_custom/views/product_template.xml | 1 | ||||
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 4 | ||||
| -rw-r--r-- | indoteknik_custom/views/requisition.xml | 25 | ||||
| -rw-r--r-- | indoteknik_custom/views/res_partner.xml | 1 | ||||
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 8 | ||||
| -rw-r--r-- | indoteknik_custom/views/users.xml | 1 |
9 files changed, 254 insertions, 16 deletions
diff --git a/indoteknik_custom/views/account_bank_statement.xml b/indoteknik_custom/views/account_bank_statement.xml new file mode 100644 index 00000000..db380f37 --- /dev/null +++ b/indoteknik_custom/views/account_bank_statement.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <data> + <record id="account_bank_statement_tree_inherit" model="ir.ui.view"> + <field name="name">account.bank.statement.tree</field> + <field name="model">account.bank.statement</field> + <field name="inherit_id" ref="account.view_bank_statement_tree"/> + <field name="arch" type="xml"> + <field name="state" position="after"> + <field name="is_edit"/> + </field> + </field> + </record> + + <record id="account_bank_statement_form_inherit" model="ir.ui.view"> + <field name="name">account.bank.statement.form</field> + <field name="model">account.bank.statement</field> + <field name="inherit_id" ref="account.view_bank_statement_form"/> + <field name="arch" type="xml"> + <button name="button_reprocess" position="after"> + <button string="Unlock" class="oe_highlight" name="is_edited" type="object" attrs="{'invisible':['|', '|', ('is_edit', '=', True), ('line_ids','=',[]), ('state', '!=', 'confirm')]}"/> + + <button string="Lock" class="oe_highlight" name="not_edited" type="object" attrs="{'invisible':['|', '|', ('is_edit', '=', False), ('line_ids','=',[]), ('state', '!=', 'confirm')]}"/> + </button> + <field name="date" position="after"> + <field name="is_edit" invisible="1"/> + </field> + </field> + </record> + </data> +</odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/customer_commision.xml b/indoteknik_custom/views/customer_commision.xml new file mode 100644 index 00000000..008c79f8 --- /dev/null +++ b/indoteknik_custom/views/customer_commision.xml @@ -0,0 +1,189 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <record id="customer_commision_tree" model="ir.ui.view"> + <field name="name">customer.commision.tree</field> + <field name="model">customer.commision</field> + <field name="arch" type="xml"> + <tree> + <field name="number"/> + <field name="date_from"/> + <field name="date_to"/> + <field name="partner_id"/> + <field name="description"/> + <field name="notification" readonly="1"/> + <field name="status" readonly="1"/> + </tree> + </field> + </record> + + <record id="customer_commision_line_tree" model="ir.ui.view"> + <field name="name">customer.commision.line.tree</field> + <field name="model">customer.commision.line</field> + <field name="arch" type="xml"> + <tree editable="top" create="false"> + <field name="partner_id" readonly="1"/> + <field name="invoice_id" readonly="1"/> + <field name="state" readonly="1"/> + <field name="product_id" readonly="1" optional="hide"/> + <field name="dpp" readonly="1"/> + <field name="tax" readonly="1" optional="hide"/> + <field name="total" readonly="1" optional="hide"/> + </tree> + </field> + </record> + + <record id="customer_commision_form" model="ir.ui.view"> + <field name="name">customer_commision_form</field> + <field name="model">customer.commision</field> + <field name="arch" type="xml"> + <form> + <header> + <button name="action_confirm_customer_commision" + string="Confirm" type="object" + options="{}"/> + </header> + <sheet string="Customer Commision"> + <div class="oe_button_box" name="button_box"/> + <group> + <group> + <field name="number"/> + <field name="date_from"/> + <field name="partner_id"/> + <field name="description"/> + <field name="commision_percent"/> + <field name="commision_amt"/> + </group> + <group> + <div> + <button name="generate_customer_commision" + string="Generate Line" + type="object" + class="mr-2 oe_highlight" + /> + </div> + <field name="date_to"/> + <field name="commision_type"/> + <field name="notification" readonly="1"/> + <field name="status" readonly="1"/> + <field name="total_dpp"/> + </group> + </group> + <notebook> + <page string="Lines"> + <field name="commision_lines"/> + </page> + </notebook> + </sheet> + <div class="oe_chatter"> + <field name="message_follower_ids" widget="mail_followers"/> + <field name="message_ids" widget="mail_thread"/> + </div> + </form> + </field> + </record> + + <record id="customer_commision_action" model="ir.actions.act_window"> + <field name="name">Customer Commision</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">customer.commision</field> + <field name="view_mode">tree,form</field> + </record> + + <menuitem id="menu_customer_commision_acct" + name="Customer Commision" + action="customer_commision_action" + parent="account.menu_finance_entries" + sequence="113" + /> + + <menuitem id="menu_customer_commision_sales" + name="Customer Commision" + action="customer_commision_action" + parent="sale.product_menu_catalog" + sequence="101" + /> + + <record id="customer_rebate_tree" model="ir.ui.view"> + <field name="name">customer.rebate.tree</field> + <field name="model">customer.rebate</field> + <field name="arch" type="xml"> + <tree> + <field name="partner_id"/> + <field name="date_from"/> + <field name="date_to"/> + <field name="description"/> + <field name="target_1st"/> + <field name="target_2nd"/> + <field name="achieve_1"/> + <field name="achieve_2"/> + <field name="dpp_q1" optional="hide"/> + <field name="dpp_q2" optional="hide"/> + <field name="dpp_q3" optional="hide"/> + <field name="dpp_q4" optional="hide"/> + <field name="status_q1" optional="hide"/> + <field name="status_q2" optional="hide"/> + <field name="status_q3" optional="hide"/> + <field name="status_q4" optional="hide"/> + </tree> + </field> + </record> + + <record id="customer_rebate_form" model="ir.ui.view"> + <field name="name">customer_rebate_form</field> + <field name="model">customer.rebate</field> + <field name="arch" type="xml"> + <form> + <sheet string="Customer Rebate"> + <div class="oe_button_box" name="button_box"/> + <group> + <group> + <field name="date_from"/> + <field name="partner_id"/> + <field name="target_1st"/> + <field name="target_2nd"/> + <field name="dpp_q1"/> + <field name="dpp_q2"/> + <field name="dpp_q3"/> + <field name="dpp_q4"/> + </group> + <group> + <field name="date_to"/> + <field name="description"/> + <field name="achieve_1"/> + <field name="achieve_2"/> + <field name="status_q1"/> + <field name="status_q2"/> + <field name="status_q3"/> + <field name="status_q4"/> + </group> + </group> + </sheet> + <div class="oe_chatter"> + <field name="message_follower_ids" widget="mail_followers"/> + <field name="message_ids" widget="mail_thread"/> + </div> + </form> + </field> + </record> + + <record id="customer_rebate_action" model="ir.actions.act_window"> + <field name="name">Customer Rebate</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">customer.rebate</field> + <field name="view_mode">tree,form</field> + </record> + + <menuitem id="menu_customer_rebate_acct" + name="Customer Rebate" + action="customer_rebate_action" + parent="account.menu_finance_entries" + sequence="114" + /> + + <menuitem id="menu_customer_rebate_sales" + name="Customer Rebate" + action="customer_rebate_action" + parent="sale.product_menu_catalog" + sequence="102" + /> +</odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/ir_sequence.xml b/indoteknik_custom/views/ir_sequence.xml index 6798e5b4..86259b12 100644 --- a/indoteknik_custom/views/ir_sequence.xml +++ b/indoteknik_custom/views/ir_sequence.xml @@ -60,5 +60,15 @@ <field name="number_next">1</field> <field name="number_increment">1</field> </record> + + <record id="sequence_commision_customer" model="ir.sequence"> + <field name="name">Customer Commision</field> + <field name="code">customer.commision</field> + <field name="active">TRUE</field> + <field name="prefix">CC/%(year)s/</field> + <field name="padding">5</field> + <field name="number_next">1</field> + <field name="number_increment">1</field> + </record> </data> </odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/product_template.xml b/indoteknik_custom/views/product_template.xml index 6fdb5e8f..92d2191e 100755 --- a/indoteknik_custom/views/product_template.xml +++ b/indoteknik_custom/views/product_template.xml @@ -10,6 +10,7 @@ <field name="web_tax_id"/> <field name="x_manufacture"/> <field name="x_model_product"/> + <field name="kind_of"/> <field name="x_studio_field_tGhJR" widget="many2many_tags"/> </field> <field name="uom_po_id" position="after"> diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index 8f7ea6df..bc84bcd1 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -79,7 +79,7 @@ <field name="description"/> <field name="total_so_percent_margin"/> <field name="has_active_invoice" invisible="1" /> - <field name="purchase_order_lines"/> + <field name="responsible_ids" widget="many2many_tags"/> </field> <field name="order_line" position="attributes"> @@ -115,6 +115,7 @@ <field name="arch" type="xml"> <field name="create_date" position="after"> <field name="approval_status" /> + <field name="responsible_ids" widget="many2many_tags" optional="hide"/> </field> </field> </record> @@ -130,6 +131,7 @@ <field name="po_status"/> <field name="note_description" optional="hide"/> <field name="sale_order_id" optional="hide"/> + <field name="responsible_ids" widget="many2many_tags" optional="hide"/> </field> </field> </record> diff --git a/indoteknik_custom/views/requisition.xml b/indoteknik_custom/views/requisition.xml index e7335a57..e9c3b4e0 100644 --- a/indoteknik_custom/views/requisition.xml +++ b/indoteknik_custom/views/requisition.xml @@ -62,16 +62,6 @@ </group> <group> <div> - <button name="create_requisition_from_sales" - string="Create Line" - type="object" - class="mr-2 oe_highlight" - /> - <button name="create_requisition_from_sales_with_price" - string="Create Line with Price" - type="object" - class="mr-2 oe_highlight" - /> <button name="create_po_from_requisition" string="Create PO" type="object" @@ -82,13 +72,26 @@ </group> <notebook> <page string="Lines"> - <field name="requisition_lines"/> + <field name="requisition_lines"> + <tree editable="line"> + <field name="product_id"/> + <field name="partner_id"/> + <field name="qty_purchase"/> + <field name="price_unit"/> + <field name="subtotal"/> + <field name="brand_id"/> + </tree> + </field> </page> <page string="Matches"> <field name="requisition_match"/> </page> </notebook> </sheet> + <div class="oe_chatter"> + <field name="message_follower_ids" widget="mail_followers"/> + <field name="message_ids" widget="mail_thread"/> + </div> </form> </field> </record> diff --git a/indoteknik_custom/views/res_partner.xml b/indoteknik_custom/views/res_partner.xml index ef4898d0..c1ae3ed3 100644 --- a/indoteknik_custom/views/res_partner.xml +++ b/indoteknik_custom/views/res_partner.xml @@ -14,6 +14,7 @@ <field name="industry_id" position="after"> <field name="company_type_id"/> <field name="group_partner_id"/> + <field name="is_potential"/> <field name="digital_invoice_tax"/> </field> <field name="npwp" position="before"> diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index a260c68a..125296e3 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -45,12 +45,12 @@ <field name="helper_by_id" readonly="1"/> </field> <field name="analytic_account_id" position="after"> - <field name="customer_type" attrs="{'required': ['|', ('create_date', '>', '2023-06-28'), ('create_date', '=', False)]}"/> - <field name="npwp" placeholder='99.999.999.9-999.999' attrs="{'required': ['|', ('create_date', '>', '2023-06-28'), ('create_date', '=', False)]}"/> - <field name="sppkp" attrs="{'invisible': [('customer_type','!=','pkp')], 'required': [('customer_type', '=', 'pkp')]}"/> + <field name="customer_type" required="1"/> + <field name="npwp" placeholder='99.999.999.9-999.999' required="1"/> + <field name="sppkp" attrs="{'required': [('customer_type', '=', 'pkp')]}"/> <field name="email" required="1"/> <field name="due_id" readonly="1"/> - <field name="source_id" domain="[('id', 'in', [32, 59, 60, 61])]" attrs="{'required':[('create_date', '>', '2023-09-10')]}"/> + <field name="source_id" domain="[('id', 'in', [32, 59, 60, 61])]" required="1"/> </field> <field name="partner_shipping_id" position="after"> <field name="real_shipping_id"/> diff --git a/indoteknik_custom/views/users.xml b/indoteknik_custom/views/users.xml index d67b4474..020d8ddc 100644 --- a/indoteknik_custom/views/users.xml +++ b/indoteknik_custom/views/users.xml @@ -13,6 +13,7 @@ <field name="is_leader"/> <field name="is_logistic_approver"/> <field name="is_editor_product"/> + <field name="is_admin_reconcile"/> </field> </field> </record> |
