summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/advance_payment_settlement.xml
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-13 14:31:22 +0700
committerFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-13 14:31:22 +0700
commit1de6ff22b0c3177d01d989b2c4fab1c64c45c1cf (patch)
tree759605b855240503dae5a2e04d2757705cb20706 /indoteknik_custom/views/advance_payment_settlement.xml
parent99d097d93635eaa1cf92064f1e9070107fe0d8a5 (diff)
(andri) fix
Diffstat (limited to 'indoteknik_custom/views/advance_payment_settlement.xml')
-rw-r--r--indoteknik_custom/views/advance_payment_settlement.xml80
1 files changed, 42 insertions, 38 deletions
diff --git a/indoteknik_custom/views/advance_payment_settlement.xml b/indoteknik_custom/views/advance_payment_settlement.xml
index a2bb31b2..a2ab5727 100644
--- a/indoteknik_custom/views/advance_payment_settlement.xml
+++ b/indoteknik_custom/views/advance_payment_settlement.xml
@@ -9,12 +9,12 @@
type="object"
string="Validasi"
class="btn-info"
- attrs="{'invisible': [('done_status', '=', 'done_realized')]}"/>
+ attrs="{'invisible': [('status', '!=', 'approved')]}"/>
<button name="action_cab"
type="object"
class="btn-info"
- attrs="{'invisible': [('is_cab_visible', '=', True)]}"
- string="AP Only"/>
+ attrs="{'invisible': [ '|', ('is_cab_visible', '=', True),('status', '!=', 'approved')]}"
+ string="Make CAB"/>
<button name="action_approval_check"
type="object"
string="Checking/Approval"
@@ -78,9 +78,9 @@
<page string="Rincian Pemberian">
<field name="pemberian_line_ids" nolabel="1">
<tree editable="false" create="false" delete="false">
- <field name="date" readonly="1"/>
- <field name="description" readonly="1"/>
- <field name="value" sum="Total Pemberian" readonly="1"/>
+ <field name="date" readonly="1" force_save="1"/>
+ <field name="description" readonly="1" force_save="1"/>
+ <field name="value" sum="Total Pemberian" readonly="1" force_save="1"/>
</tree>
</field>
</page>
@@ -95,39 +95,43 @@
</tree>
<form>
- <group>
- <field name="lot_of_attachment" invisible="1"/>
- <field name="date"/>
- <field name="account_id"/>
- <field name="description"/>
- <field name="nominal"/>
- <field name="attachment_type"
- attrs="{
- 'invisible': [('lot_of_attachment', '=', 'one_for_all_line')]
- }"/>
- <field name="attachment_file_pdf"
- filename="attachment_filename_pdf"
- widget="pdf_viewer"
- attrs="{
- 'invisible': [
- '|',
- ('lot_of_attachment', '=', 'one_for_all_line'),
- ('attachment_type', '!=', 'pdf')
- ]
- }"/>
- <field name="attachment_file_image"
- filename="attachment_filename_image"
- widget="image"
- attrs="{
- 'invisible': [
- '|',
- ('lot_of_attachment', '=', 'one_for_all_line'),
- ('attachment_type', '!=', 'image')
- ]
- }"
- style="max-width:250px; max-height:250px; object-fit:contain;"/>
+ <group col="2">
+ <group string = "Form">
+ <field name="lot_of_attachment" invisible="1"/>
+ <field name="date"/>
+ <field name="description"/>
+ <field name="nominal"/>
+ <field name="attachment_type"
+ attrs="{
+ 'invisible': [('lot_of_attachment', '=', 'one_for_all_line')]
+ }"/>
+ <field name="attachment_file_pdf"
+ filename="attachment_filename_pdf"
+ widget="pdf_viewer"
+ attrs="{
+ 'invisible': [
+ '|',
+ ('lot_of_attachment', '=', 'one_for_all_line'),
+ ('attachment_type', '!=', 'pdf')
+ ]
+ }"/>
+ <field name="attachment_file_image"
+ filename="attachment_filename_image"
+ widget="image"
+ attrs="{
+ 'invisible': [
+ '|',
+ ('lot_of_attachment', '=', 'one_for_all_line'),
+ ('attachment_type', '!=', 'image')
+ ]
+ }"
+ style="max-width:250px; max-height:250px; object-fit:contain;"/>
- <field name="done_attachment"/>
+ </group>
+ <group string="Finance">
+ <field name="account_id"/>
+ <field name="done_attachment"/>
+ </group>
</group>
</form>
</field>