Hi
I'm trying to show the 'History' tab on the partner Kanban view.
To do that I created a new module with a *_view.xml file containing as follow:
res.partner.history.info.form res.partner 20 False
I also created a *.py file into the module folder containing the inheritance of the class res_partner:
class res_partner(osv.osv):
_inherit = 'res.partner'
_columns = {
'invoice_ids': fields.one2many('account.invoice', 'partner_id', 'Invoices'),
'order_ids': fields.one2many('sale.order', 'partner_id', 'Invoices'),
}
When I go to a partner Kanban view, on the history Tab, I have nothing showed, even if I select a partner that has invoice.
If I click on the expandable 'Description' row, I get the error
`QWeb2 - template['ListView.row']: Runtime Error: Error: Unknown field state in domain [["state","not in",["draft"]]]`
As I don't deal with `state` in the *view.xml file I don't understand how I come to this error.
Thanks for your help
Cheers
↧