summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/sale_order.xml
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-15 15:13:19 +0700
committerFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-15 15:13:19 +0700
commit787ce986cc652bd92d0e477c11853eaef871b4e5 (patch)
tree5b9df5e357e301d84554618e3592bdfd389c8178 /indoteknik_custom/views/sale_order.xml
parentc04dd5a6a38ba35b30a39ed6596514679067e541 (diff)
parentee6d5d4433a397ca5cdf3474f29bcbd0b2553736 (diff)
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into matches-so-v2
Diffstat (limited to 'indoteknik_custom/views/sale_order.xml')
-rwxr-xr-xindoteknik_custom/views/sale_order.xml54
1 files changed, 51 insertions, 3 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index 8d56bbbd..82daa36f 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -7,6 +7,12 @@
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<button id="action_confirm" position="after">
+ <button name="action_open_partial_delivery_wizard"
+ string="Partial Delivery"
+ type="object"
+ class="oe_highlight"
+ attrs="{'invisible': [('state','!=','sale')]}"/>
+
<button name="calculate_line_no"
string="Create No"
type="object"
@@ -365,9 +371,13 @@
</field>
<field name="payment_term_id" position="attributes">
<attribute name="attrs">
- {'readonly': ['|', ('approval_status', 'in', ['pengajuan1', 'pengajuan2', 'approved']),
- ('state', 'not in',
- ['cancel', 'draft'])]}
+ {
+ 'readonly': [
+ '|',
+ ('approval_status', 'in', ['pengajuan1', 'pengajuan2', 'approved']),
+ ('state', 'not in', ['cancel', 'draft'])
+ ]
+ }
</attribute>
</field>
@@ -502,6 +512,44 @@
</field>
</record>
+ <record id="view_partial_delivery_wizard_form" model="ir.ui.view">
+ <field name="name">partial.delivery.wizard.form</field>
+ <field name="model">partial.delivery.wizard</field>
+ <field name="arch" type="xml">
+ <form string="Partial Delivery Wizard">
+ <group>
+ <!-- Field ini WAJIB ada walau invisible -->
+ <field name="picking_ids" invisible="1"/>
+
+ <field name="picking_id"/>
+ </group>
+
+ <separator string="Products"/>
+ <div class="oe_button_box" name="select_all_box">
+ <button name="action_select_all" string="✅ Select All" type="object" class="btn-primary"/>
+ <button name="action_unselect_all" string="❌ Unselect All" type="object" class="btn-secondary"/>
+ </div>
+
+ <field name="line_ids" context="{'default_wizard_id': active_id}" widget="many2many">
+ <tree editable="bottom">
+ <field name="selected"/>
+ <field name="product_id"/>
+ <field name="ordered_qty" readonly="1"/>
+ <field name="reserved_qty" readonly="1"/>
+ <field name="selected_qty"/>
+ </tree>
+ </field>
+
+ <footer>
+ <button string="Confirm" type="object" name="action_confirm_partial_delivery" class="btn-primary"/>
+ <button string="Cancel" class="btn-secondary" special="cancel"/>
+ </footer>
+ </form>
+ </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"/>