diff options
Diffstat (limited to 'indoteknik_custom/views/sale_order.xml')
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index 82daa36f..23fbe155 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -55,6 +55,10 @@ attrs="{'invisible':['|', ('partner_is_cbd_locked','=',False), ('state', 'not in', ['draft', 'cancel'])]}"> <strong>Warning!</strong> Payment Terms Customer terkunci menjadi <b>Cash Before Delivery (C.B.D.)</b> karena ada invoice telah jatuh tempo <b>30 hari</b>. Silakan ajukan <b>Approval Payment Term</b> untuk membuka kunci. </div> + <widget name="web_ribbon" + title="FIKTIF" + bg_color="bg-danger" + attrs="{'invisible': [('is_so_fiktif', '=', False)]}"/> </xpath> <div class="oe_button_box" name="button_box"> <field name="advance_payment_move_ids" invisible="1"/> @@ -130,17 +134,23 @@ </field> <field name="approval_status" position="after"> <field name="notes"/> + <field name="is_so_fiktif"/> </field> <field name="source_id" position="attributes"> <attribute name="invisible">1</attribute> </field> <field name="user_id" position="after"> + <field name="internal_notes_contact" readonly="1"/> <field name="hold_outgoing" readonly="1" /> <field name="date_hold" readonly="1" widget="datetime" /> <field name="date_unhold" readonly="1" widget="datetime" /> <field name="helper_by_id" readonly="1" /> <field name="compute_fullfillment" invisible="1" /> </field> + <xpath expr="//field[@name='team_id']" position="attributes"> + <attribute name="attrs">{'readonly': [('state', 'in', ['sale', 'done'])]}</attribute> + </xpath> + <field name="tag_ids" position="after"> <!-- <field name="eta_date_start"/> --> <t t-esc="' to '"/> @@ -481,6 +491,7 @@ <field name="pareto_status" optional="hide"/> <field name="shipping_method_picking" optional="hide"/> <field name="hold_outgoing" optional="hide"/> + <field name="is_so_fiktif" optional="hide" readonly="1"/> </field> </field> </record> @@ -497,8 +508,8 @@ <field name="date_kirim_ril"/> <field name="date_driver_departure"/> <field name="date_driver_arrival"/> - <field name="payment_state_custom" widget="badge" - decoration-danger="payment_state_custom == 'unpaid'" + <field name="payment_state_custom" widget="badge" + decoration-danger="payment_state_custom == 'unpaid'" decoration-success="payment_state_custom == 'paid'" decoration-warning="payment_state_custom == 'partial'" optional="hide"/> <field name="unreserved_percent" widget="percentpie" string="Unreserved" optional="hide"/> |
