diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-03-11 10:42:53 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-03-11 10:42:53 +0700 |
| commit | 38313de6949c4f39ebe7cb431d5beb15baa38d06 (patch) | |
| tree | 9e6e52129ed7bb672cd849564a5931925236b91c /indoteknik_custom/views | |
| parent | 8f59bd1fc09040241408b3bb2389c76b0e111e6e (diff) | |
<Miqdad> major fix
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/ir_sequence.xml | 12 | ||||
| -rw-r--r-- | indoteknik_custom/views/upah_harian_office_views.xml | 8 |
2 files changed, 16 insertions, 4 deletions
diff --git a/indoteknik_custom/views/ir_sequence.xml b/indoteknik_custom/views/ir_sequence.xml index aa56e46a..983cd2f4 100644 --- a/indoteknik_custom/views/ir_sequence.xml +++ b/indoteknik_custom/views/ir_sequence.xml @@ -271,12 +271,20 @@ </record> <record id="seq_upah_harian_office" model="ir.sequence"> - <field name="name"></field> + <field name="name">Upah Harian Office</field> <field name="code">upah.harian.office</field> <field name="prefix">UPHO/%(year)s/%(month)s/</field> <field name="padding">4</field> - <field name="number_next">1</field> <field name="number_increment">1</field> </record> + + <record id="seq_upah_harian_logistic" model="ir.sequence"> + <field name="name">Upah Harian Logistic</field> + <field name="code">upah.harian.logistic</field> + <field name="prefix">UPHL/%(year)s/%(month)s/</field> + <field name="padding">4</field> + <field name="number_increment">1</field> + </record> + </data> </odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/upah_harian_office_views.xml b/indoteknik_custom/views/upah_harian_office_views.xml index a88a1e66..bc4c548a 100644 --- a/indoteknik_custom/views/upah_harian_office_views.xml +++ b/indoteknik_custom/views/upah_harian_office_views.xml @@ -26,7 +26,10 @@ <header> - <button name="action_create_journal_entries" class="btn-primary" type="object" string="Create Journal Entries" attrs="{'invisible': [('state', 'not in', ['approved'])]}"/> + <button name="action_create_journal_entries" class="btn-primary" type="object" string="Create Journal Entries" attrs="{'invisible': [('state', 'not in', ['waiting_payment'])]}"/> + <button name="action_approve" class="btn-primary" type="object" string="Approve" attrs="{'invisible': [('state', 'in', ['paid', 'cancel', 'waiting_payment'])]}"/> + <button name="action_cancel" class="btn-secondary" type="object" string="Cancel" attrs="{'invisible': [('state', 'in', ['paid', 'cancel'])]}"/> + <button name="action_reset_to_draft" class="btn-secondary" type="object" string="Reset to Draft" attrs="{'invisible': [('state', 'not in', ['cancel'])]}"/> <field name="state" widget="statusbar" readonly="1"/> @@ -49,8 +52,9 @@ <field name="departement_type"/> <field name="tanggal"/> <field name="upah_harian"/> - <field name="sisa_jam_mingguan" class="text-danger" attrs="{'invisible':[('sisa_jam_mingguan','=',0)]}"/> + <field name="approved_by" attrs="{'invisible': [('state', 'in', ['draft', 'cancel'])]}"/> + <field name="cancel_reason"/> </group> |
