Open
Description
Page "Financial risk" in res.partner must be show only for companies and not parent_id.
Module
account_financial_risk
Describe the bug
Error in attribute migration from 16 to 17
To Reproduce
v17
Steps to reproduce the behavior:
- Create a partner linked to a company, the page "Financial risk" is available.
Expected behavior
Only companies must display this page.
** Proposed solution **
Change the invisible attribute in v17:
https://github.com/OCA/credit-control/blob/17.0/account_financial_risk/views/res_partner_view.xml
invisible="not is_company and not parent_id" => "not is_company and parent_id"
Original attribute in v16:
attrs="{'invisible': [('is_company','=',False), ('parent_id','!=',False)]}"