diff options
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/ir_sequence.xml | 6 | ||||
| -rw-r--r-- | indoteknik_custom/views/tukar_guling.xml | 17 |
2 files changed, 17 insertions, 6 deletions
diff --git a/indoteknik_custom/views/ir_sequence.xml b/indoteknik_custom/views/ir_sequence.xml index 3f0ba0b6..03cfbc1a 100644 --- a/indoteknik_custom/views/ir_sequence.xml +++ b/indoteknik_custom/views/ir_sequence.xml @@ -203,7 +203,8 @@ <record id="seq_tukar_guling" model="ir.sequence"> <field name="name">Pengajuan Return SO</field> <field name="code">tukar.guling</field> - <field name="prefix">CCM/</field> + <field name="active">TRUE</field> + <field name="prefix">CCM/%(year)s/</field> <field name="padding">5</field> <field name="number_next">1</field> <field name="number_increment">1</field> @@ -211,7 +212,8 @@ <record id="seq_tukar_guling_po" model="ir.sequence"> <field name="name">Pengajuan Return PO</field> <field name="code">tukar.guling.po</field> - <field name="prefix">VCM/</field> + <field name="active">TRUE</field> + <field name="prefix">VCM/%(year)s/</field> <field name="padding">5</field> <field name="number_next">1</field> <field name="number_increment">1</field> diff --git a/indoteknik_custom/views/tukar_guling.xml b/indoteknik_custom/views/tukar_guling.xml index 44b5134e..6b3492ae 100644 --- a/indoteknik_custom/views/tukar_guling.xml +++ b/indoteknik_custom/views/tukar_guling.xml @@ -24,14 +24,16 @@ <tree create="1" delete="1" default_order="create_date desc"> <field name="name"/> <field name="date"/> + <field name="origin" string="SO Number"/> <field name="operations" string="Operations"/> - <field name="ba_num" string="Nomor BA"/> <field name="return_type" string="Return Type"/> <field name="state" widget="badge" decoration-info="state in ('draft', 'approval_sales', 'approval_logistic','approval_finance')" decoration-success="state == 'done'" decoration-muted="state == 'cancel'" /> + <field name="ba_num" string="Nomor BA"/> + <field name="date_done" string="Approved Date"/> </tree> </field> </record> @@ -47,7 +49,7 @@ attrs="{'invisible': [('state', '!=', 'draft')]}"/> <button name="action_approve" string="Approve" type="object" class="btn-primary" - attrs="{'invisible': [('state', 'not in', ['approval_sales', 'approval_logistic', 'approval_finance'])]}"/> + attrs="{'invisible': [('state', 'not in', ['approval_sales', 'approval_finance', 'approval_logistic'])]}"/> <button name="action_cancel" string="Cancel" type="object" class="btn-secondary" attrs="{'invisible': [('state', '=', 'cancel')]}"/> @@ -75,14 +77,17 @@ <group> <group> <field name="date" string="Date" readonly="1"/> - <field name="return_type"/> + <field name="return_type" attrs="{'readonly': [('state', 'not in', 'draft')]}"/> <field name="operations" - attrs="{'required': [('return_type', 'in', ['revisi_so', 'tukar_guling'])]}"/> + attrs="{'readonly': [('state', 'not in', 'draft')]}"/> <field name="origin" readonly="1"/> </group> <group> <field name="ba_num" string="Nomor BA"/> <field name="notes"/> + <field name="date_sales" readonly="1"/> + <field name="date_logistic" readonly="1"/> + <field name="date_done" readonly="1"/> </group> </group> <notebook> @@ -111,6 +116,10 @@ </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> |
