跳至内容
菜单
此问题已终结
1 回复
2229 查看

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

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
1
7月 25
756
2
7月 25
856
1
7月 25
1929
3
4月 25
1950
3
4月 25
2920