8000 [BUG] account_financial_risk error in res.partner attribute domain view · Issue #414 · OCA/credit-control · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[BUG] account_financial_risk error in res.partner attribute domain view #414
Open
@antoniocanovas

Description

@antoniocanovas

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:

  1. 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)]}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstalePR/Issue without recent activity, it'll be soon closed automatically.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0