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 · 2 comments
Open

[17.0] bug in contract #1114

Guoyong-01 opened this issue Aug 8, 2024 · 2 comments
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.

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.

Copy link

github-actions bot commented Feb 9, 2025

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

No branches or pull requests

1 participant