summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-06-07 15:53:32 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-06-07 15:53:32 +0700
commit984e128294f4c3d9d3d8eab8dacf03846f8336b2 (patch)
tree10fa13d605be82de9fe32090d191f987bf0d1ef6
parent49dcd6e8111483cd8f64aa2401a41b3a8d57a1dc (diff)
(andri) revisi peletakan CAB pada PO dan add field reklas misc
-rw-r--r--indoteknik_custom/models/account_move.py1
-rw-r--r--indoteknik_custom/views/account_move.xml6
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml2
3 files changed, 8 insertions, 1 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index 29368089..73dbefd6 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -67,6 +67,7 @@ class AccountMove(models.Model):
is_hr = fields.Boolean(string="Is HR?", default=False)
purchase_order_id = fields.Many2one('purchase.order', string='Purchase Order')
length_of_payment = fields.Integer(string="Length of Payment", compute='compute_length_of_payment')
+ reklas_misc_id = fields.Many2one('account.move', string='No Jurnal Reklas (MISC)')
def name_get(self):
result = []
diff --git a/indoteknik_custom/views/account_move.xml b/indoteknik_custom/views/account_move.xml
index 9217cc2a..dda7f272 100644
--- a/indoteknik_custom/views/account_move.xml
+++ b/indoteknik_custom/views/account_move.xml
@@ -6,6 +6,12 @@
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
+ <xpath expr="//div[@name='journal_div']" position="after">
+ <field name="reklas_misc_id"
+ string="No Jurnal Reklas (MISC)"
+ attrs="{'invisible': [('move_type', '!=', 'in_invoice')]}"
+ readonly="1"/>
+ </xpath>
<button name="action_register_payment" position="after">
<button name="indoteknik_custom.action_view_invoice_reklas" string="Reklas"
type="action" class="btn-primary" attrs="{'invisible': [('state', '!=', 'posted')]}"/>
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index a78f300c..9084bcbb 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -14,7 +14,7 @@
attrs="{'invisible': ['|', ('sale_order_id', '=', False), ('state', 'not in', ['draft'])]}"
/>
</div>
- <xpath expr="//div[hasclass('oe_button_box')]" position="inside">
+ <xpath expr="//button[@name='action_view_invoice']" position="before">
<field name="is_cab_visible" invisible="1"/>
<button type="object"
name="action_view_journal_uangmuka"