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

Multi-line expression does not work #433

Open
alexey-pelykh opened this issue Jun 9, 2022 · 1 comment
Open

Multi-line expression does not work #433

alexey-pelykh opened this issue Jun 9, 2022 · 1 comment
Labels
bug no stale Use this label to prevent the automated stale action from closing this PR/Issue.

Comments

@alexey-pelykh
Copy link
Contributor

Works:

<field name="expression">balp[][('tax_ids.tag_ids.id', '=', ref('l10n_ee_accounting.kmd2017_3_2').id), ('tax_ids.type_tax_use', '=', 'purchase')] - balp[][('tax_ids.tag_ids.id', '=', ref('l10n_ee_accounting.kmd2017_3_2').id), ('tax_ids.type_tax_use', '=', 'sale')]</field>

Same but multiline does not:

<field name="expression">
    balp[][
        ('tax_ids.tag_ids.id', '=', ref('l10n_ee_accounting.kmd2017_3_2').id), ('tax_ids.type_tax_use', '=', 'purchase')
    ] - balp[][
        ('tax_ids.tag_ids.id', '=', ref('l10n_ee_accounting.kmd2017_3_2').id), ('tax_ids.type_tax_use', '=', 'sale')
    ]
</field>
@alexey-pelykh
Copy link
Contributor Author

(Probably it should've been just \ placed in correct places or just drop all newlines from the string)

@sbidoul sbidoul added the no stale Use this label to prevent the automated stale action from closing this PR/Issue. label Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug no stale Use this label to prevent the automated stale action from closing this PR/Issue.
Projects
None yet
Development

No branches or pull requests

2 participants