Quantcast
Viewing all articles
Browse latest Browse all 224

Template error when addin history tab to partner kanban view

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.formres.partner20False 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

Viewing all articles
Browse latest Browse all 224

Trending Articles