diff options
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/barcoding_product.xml | 5 | ||||
| -rwxr-xr-x | indoteknik_custom/views/purchase_pricelist.xml | 7 | ||||
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 492 | ||||
| -rw-r--r-- | indoteknik_custom/views/shipment_group.xml | 3 |
4 files changed, 260 insertions, 247 deletions
diff --git a/indoteknik_custom/views/barcoding_product.xml b/indoteknik_custom/views/barcoding_product.xml index 55876580..b259f1e8 100644 --- a/indoteknik_custom/views/barcoding_product.xml +++ b/indoteknik_custom/views/barcoding_product.xml @@ -20,6 +20,7 @@ <tree> <field name="product_id"/> <field name="qr_code_variant" widget="image"/> + <field name="sequence_with_total" attrs="{'invisible': [['parent.type', 'not in', ('multiparts')]]}"/> </tree> </field> </record> @@ -35,8 +36,8 @@ <field name="product_id" required="1"/> <field name="type" required="1"/> <field name="quantity" attrs="{'invisible': [['type', 'in', ('barcoding','barcoding_box')]], 'required': [['type', 'not in', ('barcoding')]]}"/> - <field name="barcode" attrs="{'invisible': [['type', 'in', ('print')]], 'required': [['type', 'not in', ('print')]]}"/> - <field name="qty_pcs_box" attrs="{'invisible': [['type', 'in', ('print','barcoding')]], 'required': [['type', 'not in', ('print', 'barcoding')]]}"/> + <field name="barcode" attrs="{'invisible': [['type', 'in', ('print','multiparts')]], 'required': [['type', 'not in', ('print','multiparts')]]}"/> + <field name="qty_pcs_box" attrs="{'invisible': [['type', 'in', ('print','barcoding','multiparts')]], 'required': [['type', 'not in', ('print','barcoding','multiparts')]]}"/> </group> </group> <notebook> diff --git a/indoteknik_custom/views/purchase_pricelist.xml b/indoteknik_custom/views/purchase_pricelist.xml index ca5cd416..409e3b6a 100755 --- a/indoteknik_custom/views/purchase_pricelist.xml +++ b/indoteknik_custom/views/purchase_pricelist.xml @@ -20,6 +20,8 @@ <field name="count_brand_vendor" optional="hide"/> <field name="product_categ_ids" string="Product Category" optional="hide"/> <field name="is_winner" string="Winner" optional="hide"/> + <field name="message_follower_ids" widget="mail_followers" optional="hide"/> + <field name="activity_ids" widget="mail_activity" optional="hide"/> </tree> </field> </record> @@ -52,6 +54,11 @@ </group> </group> </sheet> + <div class="oe_chatter"> + <field name="message_follower_ids" widget="mail_followers"/> + <field name="activity_ids" widget="mail_activity"/> + <field name="message_ids" widget="mail_thread"/> + </div> </form> </field> </record> diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index 3418deaf..a599a7b8 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -4,91 +4,94 @@ <record id="sale_order_form_view_inherit" model="ir.ui.view"> <field name="name">Sale Order</field> <field name="model">sale.order</field> - <field name="inherit_id" ref="sale.view_order_form" /> + <field name="inherit_id" ref="sale.view_order_form"/> <field name="arch" type="xml"> <button id="action_confirm" position="after"> <button name="calculate_line_no" - string="Create No" - type="object" + string="Create No" + type="object" /> <button name="sale_order_approve" - string="Ask Approval" - type="object" - attrs="{'invisible': [('approval_status', '=', ['approved'])]}" + string="Ask Approval" + type="object" + attrs="{'invisible': [('approval_status', '=', ['approved'])]}" /> <button name="hold_unhold_qty_outgoing_so" - string="Hold/Unhold Outgoing" - type="object" - attrs="{'invisible': [('state', 'in', ['cancel'])]}" + string="Hold/Unhold Outgoing" + type="object" + attrs="{'invisible': [('state', 'in', ['cancel'])]}" /> <button name="ask_retur_cancel_purchasing" - string="Ask Cancel Purchasing" - type="object" - attrs="{'invisible': [('state', 'in', ['cancel'])]}" + string="Ask Cancel Purchasing" + type="object" + attrs="{'invisible': [('state', 'in', ['cancel'])]}" /> <button name="action_web_approve" - string="Web Approve" - type="object" - attrs="{'invisible': ['|', '|', ('create_uid', '!=', 25), ('web_approval', '!=', False), ('state', '!=', 'draft')]}" + string="Web Approve" + type="object" + attrs="{'invisible': ['|', '|', ('create_uid', '!=', 25), ('web_approval', '!=', False), ('state', '!=', 'draft')]}" /> <button name="indoteknik_custom.action_view_uangmuka_penjualan" - string="UangMuka" - type="action" attrs="{'invisible': [('approval_status', '!=', 'approved')]}" /> + string="UangMuka" + type="action" attrs="{'invisible': [('approval_status', '!=', 'approved')]}"/> </button> <field name="payment_term_id" position="after"> - <field name="create_uid" invisible="1" /> - <field name="create_date" invisible="1" /> + <field name="create_uid" invisible="1"/> + <field name="create_date" invisible="1"/> <field name="shipping_cost_covered" - attrs="{'required': ['|', ('create_date', '>', '2023-06-15'), ('create_date', '=', False)]}" /> + attrs="{'required': ['|', ('create_date', '>', '2023-06-15'), ('create_date', '=', False)]}"/> <field name="shipping_paid_by" - attrs="{'required': ['|', ('create_date', '>', '2023-06-15'), ('create_date', '=', False)]}" /> - <field name="delivery_amt" /> - <field name="ongkir_ke_xpdc" /> - <field name="metode_kirim_ke_xpdc" /> - <field name="fee_third_party" /> - <field name="biaya_lain_lain" /> - <field name="total_percent_margin" /> - <field name="total_margin_excl_third_party" readonly="1" /> - <field name="type_promotion" /> - <label for="voucher_id" /> + attrs="{'required': ['|', ('create_date', '>', '2023-06-15'), ('create_date', '=', False)]}"/> + <field name="delivery_amt"/> + <field name="ongkir_ke_xpdc"/> + <field name="metode_kirim_ke_xpdc"/> + <field name="fee_third_party"/> + <field name="biaya_lain_lain"/> + <field name="total_percent_margin"/> + <field name="total_margin_excl_third_party" readonly="1"/> + <field name="type_promotion"/> + <label for="voucher_id"/> <div class="o_row"> <field name="voucher_id" id="voucher_id" - attrs="{'readonly': ['|', ('state', 'not in', ['draft', 'sent']), ('applied_voucher_id', '!=', False)]}" /> - <field name="applied_voucher_id" invisible="1" /> + attrs="{'readonly': ['|', ('state', 'not in', ['draft', 'sent']), ('applied_voucher_id', '!=', False)]}"/> + <field name="applied_voucher_id" invisible="1"/> <button name="action_apply_voucher" type="object" string="Apply" - confirm="Anda yakin untuk menggunakan voucher?" - help="Apply the selected voucher" class="btn-link mb-1 px-0" - icon="fa-plus" - attrs="{'invisible': ['|', '|', ('voucher_id', '=', False), ('state', 'not in', ['draft', 'sent']), ('applied_voucher_id', '!=', False)]}" + confirm="Anda yakin untuk menggunakan voucher?" + help="Apply the selected voucher" class="btn-link mb-1 px-0" + icon="fa-plus" + attrs="{'invisible': ['|', '|', ('voucher_id', '=', False), ('state', 'not in', ['draft', 'sent']), ('applied_voucher_id', '!=', False)]}" /> <button name="cancel_voucher" type="object" string="Cancel" - confirm="Anda yakin untuk membatalkan penggunaan voucher?" - help="Cancel applied voucher" class="btn-link mb-1 px-0" icon="fa-times" - attrs="{'invisible': ['|', ('applied_voucher_id', '=', False), ('state', 'not in', ['draft','sent'])]}" + confirm="Anda yakin untuk membatalkan penggunaan voucher?" + help="Cancel applied voucher" class="btn-link mb-1 px-0" icon="fa-times" + attrs="{'invisible': ['|', ('applied_voucher_id', '=', False), ('state', 'not in', ['draft','sent'])]}" /> </div> - <label for="voucher_shipping_id" /> + <label for="voucher_shipping_id"/> <div class="o_row"> <field name="voucher_shipping_id" id="voucher_shipping_id" - attrs="{'readonly': ['|', ('state', 'not in', ['draft', 'sent']), ('applied_voucher_shipping_id', '!=', False)]}" /> - <field name="applied_voucher_shipping_id" invisible="1" /> + attrs="{'readonly': ['|', ('state', 'not in', ['draft', 'sent']), ('applied_voucher_shipping_id', '!=', False)]}"/> + <field name="applied_voucher_shipping_id" invisible="1"/> <button name="action_apply_voucher_shipping" type="object" string="Apply" - confirm="Anda yakin untuk menggunakan voucher?" - help="Apply the selected voucher" class="btn-link mb-1 px-0" - icon="fa-plus" - attrs="{'invisible': ['|', '|', ('voucher_id', '=', False), ('state', 'not in', ['draft', 'sent']), ('applied_voucher_shipping_id', '!=', False)]}" + confirm="Anda yakin untuk menggunakan voucher?" + help="Apply the selected voucher" class="btn-link mb-1 px-0" + icon="fa-plus" + attrs="{'invisible': ['|', '|', ('voucher_id', '=', False), ('state', 'not in', ['draft', 'sent']), ('applied_voucher_shipping_id', '!=', False)]}" /> <button name="cancel_voucher_shipping" type="object" string="Cancel" - confirm="Anda yakin untuk membatalkan penggunaan voucher?" - help="Cancel applied voucher" class="btn-link mb-1 px-0" icon="fa-times" - attrs="{'invisible': ['|', ('applied_voucher_shipping_id', '=', False), ('state', 'not in', ['draft','sent'])]}" + confirm="Anda yakin untuk membatalkan penggunaan voucher?" + help="Cancel applied voucher" class="btn-link mb-1 px-0" icon="fa-times" + attrs="{'invisible': ['|', ('applied_voucher_shipping_id', '=', False), ('state', 'not in', ['draft','sent'])]}" /> </div> <button name="calculate_selling_price" - string="Calculate Selling Price" - type="object" + string="Calculate Selling Price" + type="object" /> </field> + <field name="approval_status" position="after"> + <field name="notes"/> + </field> <field name="source_id" position="attributes"> <attribute name="invisible">1</attribute> </field> @@ -100,128 +103,128 @@ <field name="compute_fullfillment" invisible="1" /> </field> <field name="tag_ids" position="after"> - <field name="eta_date_start" /> - <t t-esc="' to '" /> - <field name="eta_date" readonly="1" /> - <field name="expected_ready_to_ship" /> - <field name="flash_sale" /> - <field name="margin_after_delivery_purchase" /> - <field name="percent_margin_after_delivery_purchase" /> - <field name="total_weight" /> - <field name="pareto_status" /> + <field name="eta_date_start"/> + <t t-esc="' to '"/> + <field name="eta_date" readonly="1"/> + <field name="expected_ready_to_ship"/> + <field name="flash_sale"/> + <field name="margin_after_delivery_purchase"/> + <field name="percent_margin_after_delivery_purchase"/> + <field name="total_weight"/> + <field name="pareto_status"/> </field> <field name="analytic_account_id" position="after"> - <field name="customer_type" readonly="1" /> - <field name="npwp" placeholder='99.999.999.9-999.999' readonly="1" /> - <field name="sppkp" attrs="{'required': [('customer_type', '=', 'pkp')]}" readonly="1" /> - <field name="email" required="1" /> - <field name="unreserve_id" /> - <field name="due_id" readonly="1" /> - <field name="vendor_approval_id" readonly="1" widget="many2many_tags" /> - <field name="source_id" domain="[('id', 'in', [32, 59, 60, 61])]" required="1" /> + <field name="customer_type" readonly="1"/> + <field name="npwp" placeholder='99.999.999.9-999.999' readonly="1"/> + <field name="sppkp" attrs="{'required': [('customer_type', '=', 'pkp')]}" readonly="1"/> + <field name="email" required="1"/> + <field name="unreserve_id"/> + <field name="due_id" readonly="1"/> + <field name="vendor_approval_id" readonly="1" widget="many2many_tags"/> + <field name="source_id" domain="[('id', 'in', [32, 59, 60, 61])]" required="1"/> <button name="override_allow_create_invoice" - string="Override Create Invoice" - type="object" + string="Override Create Invoice" + type="object" /> - <button string="Estimate Shipping" type="object" name="action_estimate_shipping" /> + <button string="Estimate Shipping" type="object" name="action_estimate_shipping"/> </field> <field name="partner_shipping_id" position="after"> - <field name="real_shipping_id" /> - <field name="real_invoice_id" /> - <field name="approval_status" /> + <field name="real_shipping_id"/> + <field name="real_invoice_id"/> + <field name="approval_status"/> <field name="sales_tax_id" - domain="[('type_tax_use','=','sale'), ('active', '=', True)]" required="1" /> - <field name="carrier_id" required="1" /> - <field name="delivery_service_type" readonly="1" /> - <field name="shipping_option_id" /> + domain="[('type_tax_use','=','sale'), ('active', '=', True)]" required="1"/> + <field name="carrier_id" required="1"/> + <field name="delivery_service_type" readonly="1"/> + <field name="shipping_option_id"/> </field> <field name="medium_id" position="after"> - <field name="date_doc_kirim" readonly="1" /> - <field name="notification" readonly="1" /> + <field name="date_doc_kirim" readonly="1"/> + <field name="notification" readonly="1"/> </field> <xpath expr="//form/sheet/notebook/page/field[@name='order_line']" - position="attributes"> + position="attributes"> <attribute name="attrs"> - {'readonly': [('state', 'in', ('done','cancel'))]} + {'readonly': [('state', 'in', ('done', 'cancel'))]} </attribute> </xpath> <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree" - position="inside"> - <field name="desc_updatable" invisible="1" /> + position="inside"> + <field name="desc_updatable" invisible="1"/> </xpath> <xpath - expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='name']" - position="attributes"> + expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='name']" + position="attributes"> <attribute name="modifiers"> {'readonly': [('desc_updatable', '=', False)]} </attribute> </xpath> <xpath - expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='price_unit']" - position="attributes"> + expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='price_unit']" + position="attributes"> <attribute name="attrs"> { - 'readonly': [ - '|', - ('qty_invoiced', '>', 0), - ('parent.approval_status', '!=', False) - ] + 'readonly': [ + '|', + ('qty_invoiced', '>', 0), + ('parent.approval_status', '!=', False) + ] } </attribute> </xpath> <div name="invoice_lines" position="before"> <div name="vendor_id" groups="base.group_no_one" - attrs="{'invisible': [('display_type', '!=', False)]}"> - <label for="vendor_id" /> + attrs="{'invisible': [('display_type', '!=', False)]}"> + <label for="vendor_id"/> <div name="vendor_id"> <field name="vendor_id" - attrs="{'readonly': [('parent.approval_status', '=', 'approved')]}" - domain="[('parent_id', '=', False)]" - options="{'no_create': True}" class="oe_inline" /> + attrs="{'readonly': [('parent.approval_status', '=', 'approved')]}" + domain="[('parent_id', '=', False)]" + options="{'no_create': True}" class="oe_inline"/> </div> </div> </div> <div name="invoice_lines" position="before"> <div name="purchase_price" groups="base.group_no_one" - attrs="{'invisible': [('display_type', '!=', False)]}"> - <label for="purchase_price" /> - <field name="purchase_price" /> + attrs="{'invisible': [('display_type', '!=', False)]}"> + <label for="purchase_price"/> + <field name="purchase_price"/> </div> </div> <div name="invoice_lines" position="before"> <div name="purchase_tax_id" groups="base.group_no_one" - attrs="{'invisible': [('display_type', '!=', False)]}"> - <label for="purchase_tax_id" /> + attrs="{'invisible': [('display_type', '!=', False)]}"> + <label for="purchase_tax_id"/> <div name="purchase_tax_id"> - <field name="purchase_tax_id" /> + <field name="purchase_tax_id"/> </div> </div> </div> <div name="invoice_lines" position="before"> <div name="item_percent_margin" groups="base.group_no_one" - attrs="{'invisible': [('display_type', '!=', False)]}"> - <label for="item_percent_margin" /> - <field name="item_percent_margin" /> + attrs="{'invisible': [('display_type', '!=', False)]}"> + <label for="item_percent_margin"/> + <field name="item_percent_margin"/> </div> </div> <div name="invoice_lines" position="before"> <div name="price_subtotal" groups="base.group_no_one" - attrs="{'invisible': [('display_type', '!=', False)]}"> - <label for="price_subtotal" /> - <field name="price_subtotal" /> + attrs="{'invisible': [('display_type', '!=', False)]}"> + <label for="price_subtotal"/> + <field name="price_subtotal"/> </div> </div> <xpath - expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='price_total']" - position="after"> - <field name="qty_free_bu" optional="hide" /> + expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='price_total']" + position="after"> + <field name="qty_free_bu" optional="hide"/> <field name="vendor_id" - attrs="{'readonly': [('parent.approval_status', '=', 'approved')], 'invisible': [('display_type', '!=', False)]}" - domain="[('parent_id', '=', False)]" options="{'no_create':True}" /> - <field name="vendor_md_id" optional="hide" /> + attrs="{'readonly': [('parent.approval_status', '=', 'approved')], 'invisible': [('display_type', '!=', False)]}" + domain="[('parent_id', '=', False)]" options="{'no_create':True}"/> + <field name="vendor_md_id" optional="hide"/> <field name="purchase_price" - attrs=" + attrs=" { 'readonly': [ '|', @@ -229,35 +232,35 @@ ('parent.approval_status', '!=', False) ] } - " /> - <field name="purchase_price_md" optional="hide" /> + "/> + <field name="purchase_price_md" optional="hide"/> <field name="purchase_tax_id" - attrs="{'readonly': [('parent.approval_status', '!=', False)]}" - domain="[('type_tax_use','=','purchase')]" options="{'no_create':True}" /> - <field name="item_percent_margin" /> - <field name="item_margin" optional="hide" /> - <field name="margin_md" optional="hide" /> - <field name="note" optional="hide" /> - <field name="note_procurement" optional="hide" /> - <field name="vendor_subtotal" optional="hide" /> - <field name="weight" optional="hide" /> - <field name="amount_voucher_disc" string="Voucher" readonly="1" optional="hide" /> - <field name="order_promotion_id" string="Promotion" readonly="1" optional="hide" /> + attrs="{'readonly': [('parent.approval_status', '!=', False)]}" + domain="[('type_tax_use','=','purchase')]" options="{'no_create':True}"/> + <field name="item_percent_margin"/> + <field name="item_margin" optional="hide"/> + <field name="margin_md" optional="hide"/> + <field name="note" optional="hide"/> + <field name="note_procurement" optional="hide"/> + <field name="vendor_subtotal" optional="hide"/> + <field name="weight" optional="hide"/> + <field name="amount_voucher_disc" string="Voucher" readonly="1" optional="hide"/> + <field name="order_promotion_id" string="Promotion" readonly="1" optional="hide"/> </xpath> <xpath - expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_id']" - position="before"> - <field name="line_no" readonly="1" optional="hide" /> + expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_id']" + position="before"> + <field name="line_no" readonly="1" optional="hide"/> </xpath> <xpath - expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='qty_delivered']" - position="before"> - <field name="qty_reserved" invisible="1" /> - <field name="reserved_from" readonly="1" optional="hide" /> + expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='qty_delivered']" + position="before"> + <field name="qty_reserved" invisible="1"/> + <field name="reserved_from" readonly="1" optional="hide"/> </xpath> <xpath - expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_id']" - position="attributes"> + expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_id']" + position="attributes"> <attribute name="options">{'no_create': True}</attribute> </xpath> <!-- <xpath @@ -266,42 +269,42 @@ <attribute name="required">1</attribute> </xpath> --> <field name="amount_total" position="after"> - <field name="grand_total" /> - <label for="amount_voucher_disc" string="Voucher" /> + <field name="grand_total"/> + <label for="amount_voucher_disc" string="Voucher"/> <div> - <field class="mb-0" name="amount_voucher_disc" string="Voucher" readonly="1" /> + <field class="mb-0" name="amount_voucher_disc" string="Voucher" readonly="1"/> <div class="text-right mb-2"> <small>*Hanya informasi</small> </div> </div> - <label for="amount_voucher_shipping_disc" string="Voucher Shipping" /> + <label for="amount_voucher_shipping_disc" string="Voucher Shipping"/> <div> <field class="mb-0" name="amount_voucher_shipping_disc" - string="Voucher Shipping" readonly="1" /> + string="Voucher Shipping" readonly="1"/> <div class="text-right mb-2"> <small>*Hanya informasi</small> </div> </div> - <field name="total_margin" /> - <field name="total_percent_margin" /> - <field name="total_before_margin" /> + <field name="total_margin"/> + <field name="total_percent_margin"/> + <field name="total_before_margin"/> </field> <field name="effective_date" position="after"> - <field name="carrier_id" /> - <field name="estimated_arrival_days" /> - <field name="picking_iu_id" /> - <field name="note_ekspedisi" /> + <field name="carrier_id"/> + <field name="estimated_arrival_days"/> + <field name="picking_iu_id"/> + <field name="note_ekspedisi"/> </field> <field name="carrier_id" position="attributes"> <attribute name="attrs"> {'readonly': [('approval_status', '=', 'approved'), ('state', 'not in', - ['cancel','draft'])]} + ['cancel', 'draft'])]} </attribute> </field> <field name="payment_term_id" position="attributes"> <attribute name="attrs"> {'readonly': [('approval_status', '=', 'approved'), ('state', 'not in', - ['cancel','draft'])]} + ['cancel', 'draft'])]} </attribute> </field> @@ -309,55 +312,55 @@ <page string="Website" name="customer_purchase_order"> <group> <group> - <field name="partner_purchase_order_name" readonly="True" /> - <field name="partner_purchase_order_description" readonly="True" /> - <field name="partner_purchase_order_file" readonly="True" /> - <field name="note_website" readonly="True" /> - <field name="web_approval" readonly="True" /> + <field name="partner_purchase_order_name" readonly="True"/> + <field name="partner_purchase_order_description" readonly="True"/> + <field name="partner_purchase_order_file" readonly="True"/> + <field name="note_website" readonly="True"/> + <field name="web_approval" readonly="True"/> </group> <group> <button name="generate_payment_link_midtrans_sales_order" - string="Create Payment Link" - type="object" + string="Create Payment Link" + type="object" /> - <field name="payment_link_midtrans" readonly="True" widget="url" /> - <field name="gross_amount" readonly="True" /> - <field name="payment_type" readonly="True" /> - <field name="payment_status" readonly="True" /> - <field name="payment_qr_code" widget="image" readonly="True" /> + <field name="payment_link_midtrans" readonly="True" widget="url"/> + <field name="gross_amount" readonly="True"/> + <field name="payment_type" readonly="True"/> + <field name="payment_status" readonly="True"/> + <field name="payment_qr_code" widget="image" readonly="True"/> </group> </group> </page> <page string="Promotion" name="page_promotion"> <field name="order_promotion_ids" readonly="1"> <tree options="{'no_open': True}"> - <field name="program_line_id" /> - <field name="quantity" /> - <field name="is_applied" /> + <field name="program_line_id"/> + <field name="quantity"/> + <field name="is_applied"/> </tree> <form> <group> - <field name="program_line_id" /> - <field name="quantity" /> - <field name="is_applied" /> + <field name="program_line_id"/> + <field name="quantity"/> + <field name="is_applied"/> </group> </form> </field> </page> <page string="Matches PO" name="page_matches_po" invisible="1"> - <field name="order_sales_match_line" readonly="1" /> + <field name="order_sales_match_line" readonly="1"/> </page> <!-- <page string="Fullfillment" name="page_sale_order_fullfillment"> <field name="fullfillment_line" readonly="1"/> </page> --> <page string="Fulfillment v2" name="page_sale_order_fullfillment2"> - <field name="fulfillment_line_v2" readonly="1" /> + <field name="fulfillment_line_v2" readonly="1"/> </page> <page string="Reject Line" name="page_sale_order_reject_line"> - <field name="reject_line" readonly="0" /> + <field name="reject_line" readonly="0"/> </page> <page string="Koli" name="page_sales_order_koli_line"> - <field name="koli_lines" readonly="1" /> + <field name="koli_lines" readonly="1"/> </page> </page> </field> @@ -369,15 +372,15 @@ <field name="arch" type="xml"> <form string="Cancel Reason"> <group> - <field name="reason_cancel" widget="selection" /> - <field name="attachment_bukti" widget="many2many_binary" required="1" /> + <field name="reason_cancel" widget="selection"/> + <field name="attachment_bukti" widget="many2many_binary" required="1"/> <field name="nomor_so_pengganti" - attrs="{'invisible': [('reason_cancel', '!=', 'ganti_quotation')]}" /> + attrs="{'invisible': [('reason_cancel', '!=', 'ganti_quotation')]}"/> </group> <footer> <button string="Confirm" type="object" name="confirm_reject" - class="btn-primary" /> - <button string="Cancel" class="btn-secondary" special="cancel" /> + class="btn-primary"/> + <button string="Cancel" class="btn-secondary" special="cancel"/> </footer> </form> </field> @@ -394,43 +397,44 @@ <record id="sale_order_tree_view_inherit" model="ir.ui.view"> <field name="name">Sale Order</field> <field name="model">sale.order</field> - <field name="inherit_id" ref="sale.view_quotation_tree_with_onboarding" /> + <field name="inherit_id" ref="sale.view_quotation_tree_with_onboarding"/> <field name="arch" type="xml"> <field name="state" position="after"> - <field name="approval_status" /> - <field name="client_order_ref" /> - <field name="payment_type" optional="hide" /> - <field name="payment_status" optional="hide" /> - <field name="pareto_status" optional="hide" /> - <field name="shipping_method_picking" optional="hide" /> - <field name="hold_outgoing" optional="hide" /> + <field name="approval_status"/> + <field name="client_order_ref"/> + <field name="notes"/> + <field name="payment_type" optional="hide"/> + <field name="payment_status" optional="hide"/> + <field name="pareto_status" optional="hide"/> + <field name="shipping_method_picking" optional="hide"/> + <field name="hold_outgoing" optional="hide"/> </field> </field> </record> <record id="sales_order_tree_view_inherit" model="ir.ui.view"> <field name="name">Sale Order</field> <field name="model">sale.order</field> - <field name="inherit_id" ref="sale.view_order_tree" /> + <field name="inherit_id" ref="sale.view_order_tree"/> <field name="arch" type="xml"> <field name="state" position="after"> - <field name="approval_status" /> - <field name="client_order_ref" /> - <field name="so_status" /> - <field name="date_status_done" /> - <field name="date_kirim_ril" /> - <field name="date_driver_departure" /> - <field name="date_driver_arrival" /> - <field name="payment_type" optional="hide" /> - <field name="payment_status" optional="hide" /> - <field name="pareto_status" optional="hide" /> + <field name="approval_status"/> + <field name="client_order_ref"/> + <field name="so_status"/> + <field name="date_status_done"/> + <field name="date_kirim_ril"/> + <field name="date_driver_departure"/> + <field name="date_driver_arrival"/> + <field name="payment_type" optional="hide"/> + <field name="payment_status" optional="hide"/> + <field name="pareto_status" optional="hide"/> </field> </field> </record> <record id="sale_order_multi_update_ir_actions_server" model="ir.actions.server"> <field name="name">Mark As Cancel</field> - <field name="model_id" ref="sale.model_sale_order" /> - <field name="binding_model_id" ref="sale.model_sale_order" /> + <field name="model_id" ref="sale.model_sale_order"/> + <field name="binding_model_id" ref="sale.model_sale_order"/> <field name="binding_view_types">form,list</field> <field name="state">code</field> <field name="code">action = records.open_form_multi_update_state()</field> @@ -438,32 +442,32 @@ <record id="sale_order_update_multi_actions_server" model="ir.actions.server"> <field name="name">Mark As Completed</field> - <field name="model_id" ref="sale.model_sale_order" /> - <field name="binding_model_id" ref="sale.model_sale_order" /> + <field name="model_id" ref="sale.model_sale_order"/> + <field name="binding_model_id" ref="sale.model_sale_order"/> <field name="state">code</field> <field name="code">action = records.open_form_multi_update_status()</field> </record> <record id="mail_template_sale_order_web_approve_notification" model="mail.template"> <field name="name">Sale Order: Web Approve Notification</field> - <field name="model_id" ref="indoteknik_custom.model_sale_order" /> + <field name="model_id" ref="indoteknik_custom.model_sale_order"/> <field name="subject">Permintaan Persetujuan Pesanan ${object.name} di Indoteknik.com</field> <field name="email_from">sales@indoteknik.com</field> <field name="email_to">${object.partner_id.email | safe}</field> <field name="email_cc">${object.partner_id.get_approve_partner_ids("email_comma_sep")}</field> <field name="body_html" type="html"> <table border="0" cellpadding="0" cellspacing="0" - style="padding: 16px 0; background-color: #F1F1F1; font-family:Inter, Helvetica, Verdana, Arial,sans-serif; line-height: 24px; color: #454748; width: 100%; border-collapse:separate;"> + style="padding: 16px 0; background-color: #F1F1F1; font-family:Inter, Helvetica, Verdana, Arial,sans-serif; line-height: 24px; color: #454748; width: 100%; border-collapse:separate;"> <tr> <td align="center"> <table border="0" cellpadding="0" cellspacing="0" width="590" - style="font-size: 13px; padding: 16px; background-color: white; color: #454748; border-collapse:separate;"> + style="font-size: 13px; padding: 16px; background-color: white; color: #454748; border-collapse:separate;"> <tbody> <tr> <td align="center" style="min-width: 590px;"> <table border="0" cellpadding="0" cellspacing="0" - width="590" - style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"> + width="590" + style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"> <tr> <td style="padding-bottom: 24px;"> Dear @@ -480,8 +484,8 @@ <tr> <td style="padding-bottom: 16px;"> <a - href="https://indoteknik.com/my/quotations/${object.id}" - style="color: white; background-color: #C53030; border: none; border-radius: 6px; padding: 4px 8px; width: fit-content; display: block;"> + href="https://indoteknik.com/my/quotations/${object.id}" + style="color: white; background-color: #C53030; border: none; border-radius: 6px; padding: 4px 8px; width: fit-content; display: block;"> Lihat Pesanan </a> </td> @@ -524,11 +528,11 @@ <field name="model">sales.order.purchase.match</field> <field name="arch" type="xml"> <tree editable="top" create="false" delete="false"> - <field name="purchase_order_id" readonly="1" /> - <field name="purchase_line_id" readonly="1" /> - <field name="product_id" readonly="1" /> - <field name="qty_so" readonly="1" /> - <field name="qty_po" readonly="1" /> + <field name="purchase_order_id" readonly="1"/> + <field name="purchase_line_id" readonly="1"/> + <field name="product_id" readonly="1"/> + <field name="qty_so" readonly="1"/> + <field name="qty_po" readonly="1"/> </tree> </field> </record> @@ -540,9 +544,9 @@ <field name="model">sales.order.koli</field> <field name="arch" type="xml"> <tree editable="top" create="false" delete="false"> - <field name="koli_id" readonly="1" /> - <field name="picking_id" readonly="1" /> - <field name="state" readonly="1" /> + <field name="koli_id" readonly="1"/> + <field name="picking_id" readonly="1"/> + <field name="state" readonly="1"/> </tree> </field> </record> @@ -556,14 +560,14 @@ <field name="model">sales.order.fulfillment.v2</field> <field name="arch" type="xml"> <tree editable="top" create="false"> - <field name="product_id" readonly="1" /> - <field name="so_qty" readonly="1" optional="show" /> - <field name="reserved_stock_qty" readonly="1" optional="show" /> - <field name="delivered_qty" readonly="1" optional="hide" /> - <field name="po_ids" widget="many2many_tags" readonly="1" optional="show" /> - <field name="po_qty" readonly="1" optional="show" /> - <field name="received_qty" readonly="1" optional="show" /> - <field name="purchaser" readonly="1" optional="hide" /> + <field name="product_id" readonly="1"/> + <field name="so_qty" readonly="1" optional="show"/> + <field name="reserved_stock_qty" readonly="1" optional="show"/> + <field name="delivered_qty" readonly="1" optional="hide"/> + <field name="po_ids" widget="many2many_tags" readonly="1" optional="show"/> + <field name="po_qty" readonly="1" optional="show"/> + <field name="received_qty" readonly="1" optional="show"/> + <field name="purchaser" readonly="1" optional="hide"/> </tree> </field> </record> @@ -573,10 +577,10 @@ <field name="model">sales.order.fullfillment</field> <field name="arch" type="xml"> <tree editable="top" create="false"> - <field name="product_id" readonly="1" /> - <field name="reserved_from" readonly="1" /> - <field name="qty_fullfillment" readonly="1" /> - <field name="user_id" readonly="1" /> + <field name="product_id" readonly="1"/> + <field name="reserved_from" readonly="1"/> + <field name="qty_fullfillment" readonly="1"/> + <field name="user_id" readonly="1"/> </tree> </field> </record> @@ -588,9 +592,9 @@ <field name="model">sales.order.reject</field> <field name="arch" type="xml"> <tree editable="top" create="false"> - <field name="product_id" readonly="1" /> - <field name="qty_reject" readonly="1" /> - <field name="reason_reject" readonly="0" /> + <field name="product_id" readonly="1"/> + <field name="qty_reject" readonly="1"/> + <field name="reason_reject" readonly="0"/> </tree> </field> </record> @@ -599,8 +603,8 @@ <data> <record id="sale_order_multi_create_uangmuka_ir_actions_server" model="ir.actions.server"> <field name="name">Uang Muka</field> - <field name="model_id" ref="sale.model_sale_order" /> - <field name="binding_model_id" ref="sale.model_sale_order" /> + <field name="model_id" ref="sale.model_sale_order"/> + <field name="binding_model_id" ref="sale.model_sale_order"/> <field name="state">code</field> <field name="code">action = records.open_form_multi_create_uang_muka()</field> </record> @@ -609,24 +613,24 @@ <data> <record id="mail_template_sale_order_notification_to_salesperson" model="mail.template"> <field name="name">Sale Order: Notification to Salesperson</field> - <field name="model_id" ref="sale.model_sale_order" /> + <field name="model_id" ref="sale.model_sale_order"/> <field name="subject">Konsolidasi Pengiriman</field> <field name="email_from">sales@indoteknik.com</field> <field name="email_to">${object.user_id.login | safe}</field> <field name="body_html" type="html"> <table border="0" cellpadding="0" cellspacing="0" - style="padding-top: 16px; background-color: #F1F1F1; font-family:Inter, Helvetica, Verdana, Arial,sans-serif; line-height: 24px; color: #454748; width: 100%; border-collapse:separate;"> + style="padding-top: 16px; background-color: #F1F1F1; font-family:Inter, Helvetica, Verdana, Arial,sans-serif; line-height: 24px; color: #454748; width: 100%; border-collapse:separate;"> <tr> <td align="center"> <table border="0" cellpadding="0" cellspacing="0" width="590" - style="font-size: 13px; padding: 16px; background-color: white; color: #454748; border-collapse:separate;"> + style="font-size: 13px; padding: 16px; background-color: white; color: #454748; border-collapse:separate;"> <!-- HEADER --> <tbody> <tr> <td align="center" style="min-width: 590px;"> <table border="0" cellpadding="0" cellspacing="0" - width="590" - style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"> + width="590" + style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"> <tr> <td valign="middle"> <span></span> @@ -639,8 +643,8 @@ <tr> <td align="center" style="min-width: 590px;"> <table border="0" cellpadding="0" cellspacing="0" - width="590" - style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"> + width="590" + style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"> <tr> <td style="padding-bottom: 24px;">Dear ${salesperson_name},</td> @@ -657,7 +661,7 @@ <tr> <td> <table border="1" cellpadding="5" - cellspacing="0"> + cellspacing="0"> <thead> <tr> <th>Nama Pesanan</th> @@ -676,7 +680,7 @@ <tr> <td style="text-align:center;"> <hr width="100%" - style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" /> + style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;"/> </td> </tr> </table> diff --git a/indoteknik_custom/views/shipment_group.xml b/indoteknik_custom/views/shipment_group.xml index d2c661ba..a4f82e27 100644 --- a/indoteknik_custom/views/shipment_group.xml +++ b/indoteknik_custom/views/shipment_group.xml @@ -18,8 +18,9 @@ <field name="model">shipment.group.line</field> <field name="arch" type="xml"> <tree editable="bottom"> - <field name="sale_id" readonly="1"/> + <field name="partner_id" readonly="1"/> <field name="picking_id" required="1"/> + <field name="sale_id" readonly="1"/> <field name="total_colly" readonly="1"/> </tree> </field> |
