Skip to Content
Menu
This question has been flagged
1 Reply
2275 Views

Please i want to inherit account.move model and change the selection values in the selection field.

move_type = fields.Selection(selection=[

('entry', 'Journal Entry'),

('out_invoice', 'Customer 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, store=True, index=True, readonly=True, tracking=True,

default="entry", change_default=True)

Avatar
Discard
Best Answer

class CustomAccountMove(models.Model):
_inherit = 'account.move'







Avatar
Discard

of course you should create a custom module and put that code in a model