Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2191 Tampilan

How do I change 'customer invoice' to 'tax invoice' in odoo 17? 

Avatar
Buang
Jawaban Terbai

Hi,


Inherit the model 'account.move' and replace the field move_type with changing the 'Customer Invoice' to 'Tax Invoice'.


Go through the code:


_inherit = 'account.move'


move_type = fields.Selection(

selection=[

('entry', 'Journal Entry'),

('out_invoice', 'Tax Invoice'),

('out_refund', 'Customer Credit Note'),

('in_invoice', 'Vendor Bill'),

('in_refund', 'Vendor Credit Note'),

('out_receipt', 'Sales Receipt'),

('in_receipt', 'Purchase Receipt'),

],

string='Type',

required=True,

readonly=True,

tracking=True,

change_default=True,

index=True,

default="entry")


Hope it helps

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jul 25
630
2
Jul 25
754
1
Jul 25
1822
3
Apr 25
1860
3
Apr 25
2879