[FIX] l10n_id_efaktur: default kode transaksi

Kode transaksi is a required field on account moves.
This field is either set on the move itself, or is
taken from the partner.

It NEEDS to be set when invoicing, but customers
cannot provide this values by themselves when
registering for example. This would cause issues
with automatic subscriptions amongst other systems.

In order to fix this issue, we will define the code 01
as default value.

closes odoo/odoo#151265

X-original-commit: 846f7cc9a7dbec4f9c6631ae2ccd484f9af47dd8
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
This commit is contained in:
Nicolas Viseur (vin)
2024-01-26 01:17:57 +00:00
parent 11872c923c
commit 0707637924
+5 -1
View File
@@ -22,7 +22,11 @@ class ResPartner(models.Model):
('07', '07 Penyerahan yang PPN-nya Tidak Dipungut (Kawasan Ekonomi Khusus/ Batam)'),
('08', '08 Penyerahan yang PPN-nya Dibebaskan (Impor Barang Tertentu)'),
('09', '09 Penyerahan Aktiva ( Pasal 16D UU PPN )'),
], string='Kode Transaksi', help='Dua digit pertama nomor pajak')
],
string='Kode Transaksi',
help='Dua digit pertama nomor pajak',
default='01',
)
@api.depends('vat', 'country_code')
def _compute_l10n_id_pkp(self):