Hi! I want to extend the base accounting module via my own created module. I added two fields to the database with the following code in my models.py file:
class AccountMove(models.Model):
_inherit = "account.move"
my_new_selection = fields.Selection([('0', 'Zero Something'), ('1', 'One Something'),], string="Important Numbers", store=True, default='0')
my_new_datefield = fields.Datetime(string='Important Dates', store=True)
Now my question is, what is the best way to import those fields into the existing account module views? I want to be able to select something from my_new_selection for each invoice, as well as my_new_datefield. I would also like to be able to add those fields to the columns in the Accounting Overview/Bills and Accounting Overview/Invoices views and to add a filter for those columns. The filter can be done via Add Custom Filter if it is too much work, but i dont know how to add those fields in a) the invoice-creation form and b) the view listing all invoices.