Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] account_financial_risk error in res.partner attribute domain view #414

Open
antoniocanovas opened this issue Jan 8, 2025 · 0 comments
Labels

Comments

@antoniocanovas
Copy link

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

@antoniocanovas antoniocanovas changed the title [BUG] account_financial_risk error in res.partner domain view [BUG] account_financial_risk error in res.partner attribute domain view Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant