Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2289 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
lug 25
860
2
lug 25
997
1
lug 25
2062
3
apr 25
2035
3
apr 25
3054