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

[17.0] bug in contract #1114

Open
Guoyong-01 opened this issue Aug 8, 2024 · 1 comment
Open

[17.0] bug in contract #1114

Guoyong-01 opened this issue Aug 8, 2024 · 1 comment
Labels

Comments

@Guoyong-01
Copy link

Guoyong-01 commented Aug 8, 2024

Module

Contract

Describe the bug

When creating a template for contract type Supplier, it generates an error:
Uncaught Promise > The following error occurred in onWillUpdateProps: "Can not evaluate python expression: (bool(parent.contract_type == 'purchase' and not is_auto_renew)) Error: Name 'is_auto_renew' is not defined"

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. Go to Invoicing > Configuration > Contract Templates
  2. Select Supplier as Contract Type
@Guoyong-01 Guoyong-01 added the bug label Aug 8, 2024
@Guoyong-01
Copy link
Author

this is the line that causes the error:

column_invisible="parent.contract_type == 'purchase' and not is_auto_renew"

i think the column_invisible should be removed cause if a line has is_auto_renew to false but other lines have it to true, the column should not be invisible. By removing it everythin works well.

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