summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/advance_payment_request.xml
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-20 10:26:32 +0700
committerFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-20 10:26:32 +0700
commit06e514d5287d2a316787e80648a06b2d92dc0d47 (patch)
treefde84b427a10471ecab4272c45e28cdf4737ea9b /indoteknik_custom/views/advance_payment_request.xml
parenta4363a5468a5a9d6a3815cb8ae304fe1da3aef30 (diff)
(andri) grandtotal reimburse
Diffstat (limited to 'indoteknik_custom/views/advance_payment_request.xml')
-rw-r--r--indoteknik_custom/views/advance_payment_request.xml15
1 files changed, 11 insertions, 4 deletions
diff --git a/indoteknik_custom/views/advance_payment_request.xml b/indoteknik_custom/views/advance_payment_request.xml
index 073fa815..b7db4e07 100644
--- a/indoteknik_custom/views/advance_payment_request.xml
+++ b/indoteknik_custom/views/advance_payment_request.xml
@@ -23,14 +23,14 @@
attrs="{'invisible': ['|', ('status', 'not in', ['approved']), ('status_pay_down_payment', '=', 'payment')]}"/>
<button name="action_ap_only"
type="object"
- string="Make CAB"
+ string="Buat Jurnal PUM"
class="btn-info"
attrs="{'invisible': ['|', ('status', 'not in', ['approved']), ('is_cab_visible', '=', True)]}"/>
<button name="action_open_create_reimburse_cab"
type="object"
string="Buat Jurnal Reimburse"
class="btn-info"
- />
+ attrs="{'invisible': ['|', ('status', 'not in', ['approved']), ('is_cab_visible', '=', True)]}"/>
<field name="status" widget="statusbar"
statusbar_visible="draft,pengajuan1,pengajuan2,pengajuan3,approved"
statusbar_colors='{"reject":"red"}'
@@ -134,9 +134,10 @@
<field name="is_vehicle"/>
<field name="vehicle_type" attrs="{'invisible': [('is_vehicle', '=', False)]}"/>
<field name="description"/>
- <field name="distance" attrs="{'invisible': [('is_vehicle', '=', False)]}"/>
+ <field name="distance_departure" attrs="{'invisible': [('is_vehicle', '=', False)]}"/>
+ <field name="distance_return" attrs="{'invisible': [('is_vehicle', '=', False)]}"/>
<field name="quantity"/>
- <field name="price"/>
+ <field name="price" attrs="{'readonly': [('is_vehicle', '=', True)]}" force_save ="1"/>
<field name="total" readonly="1"/>
<field name="currency_id" invisible="1"/>
<field name="attachment_type"/>
@@ -156,6 +157,12 @@
</group>
</form>
</field>
+ <group class="oe_subtotal_footer oe_right" name="reimburse_total">
+ <field name="currency_id" invisible="1"/>
+ <field name="grand_total_reimburse"
+ widget="monetary"
+ options="{'currency_field': 'currency_id'}"/>
+ </group>
</page>
</notebook>
</sheet>