summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-07-18 13:31:55 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-07-18 13:31:55 +0700
commit89c04f6748c4794018b34004472f08e3f41c8e43 (patch)
tree861d908d57ef5a9765a652bf27e6de24d67c0683
parentbe96aa583d6d68404a19350aae464a05a3f6efd4 (diff)
add new fields on account move bills
-rw-r--r--indoteknik_custom/models/account_move.py1
-rw-r--r--indoteknik_custom/views/account_move.xml3
2 files changed, 4 insertions, 0 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index bc6061ee..33fb73b5 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -15,6 +15,7 @@ class AccountMove(models.Model):
date_kirim_tukar_faktur = fields.Date(string='Kirim Faktur')
resi_tukar_faktur = fields.Char(string='Resi Faktur')
date_terima_tukar_faktur = fields.Date(string='Terima Faktur')
+ payment_schedule = fields.Date(string='Jadwal Pembayaran')
shipper_faktur_id = fields.Many2one('delivery.carrier', string='Shipper Faktur')
due_extension = fields.Integer(string='Due Extension', default=0)
new_due_date = fields.Date(string='New Due')
diff --git a/indoteknik_custom/views/account_move.xml b/indoteknik_custom/views/account_move.xml
index a1d3eaaa..0fd6b5b5 100644
--- a/indoteknik_custom/views/account_move.xml
+++ b/indoteknik_custom/views/account_move.xml
@@ -10,6 +10,9 @@
<button name="indoteknik_custom.action_view_invoice_reklas" string="Reklas"
type="action" class="btn-primary" attrs="{'invisible': [('state', '!=', 'posted')]}"/>
</button>
+ <field name="invoice_date" position="after">
+ <field name="payment_schedule" attrs="{'invisible': [('move_type', '!=', 'in_invoice')]}"/>
+ </field>
<field name="invoice_user_id" position="after">
<field name="date_kirim_tukar_faktur"/>
<field name="shipper_faktur_id"/>