Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2232 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iul. 25
762
2
iul. 25
862
1
iul. 25
1935
3
apr. 25
1953
3
apr. 25
2926