-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
[FIX] pylint-odoo: modify dangerous-view-replace-wo-priority to check all child tags with replace #309
[FIX] pylint-odoo: modify dangerous-view-replace-wo-priority to check all child tags with replace #309
Conversation
d3983d6
to
0112714
Compare
Could you review this, please? Regards. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of the image, I'd paste the code in the description.
f8dd84b
to
e13b9f2
Compare
Done |
I think that its ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @fernandahf,
Remember commit description is as (and sometimes more) as important than the PR description.
Could you copy PR description in the commit description, please?
@@ -88,7 +88,7 @@ | |||
</form> | |||
</field> | |||
</record> | |||
<!-- Replace with low priority eval--> | |||
<!-- --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, sorry, was an error.
… all child tags with replace Consider next case: <record id=crm_case_form_view_leads_form_inherit model=ir.ui.view> <field name=name>crm.lead.form.lead</field> <field name=model>crm.lead</field> <field name=inherit_id ref=crm.crm_case_form_view_leads/> <field name=arch type=xml> <label for=contact_name position=replace/> ... </field> </record> Part of code where replace is use is a label tag and pylint-odoo does not recognize it, however, Odoo convert this part of code in a xpath tag with replace attribute but in that point already passed lint.
e13b9f2
to
1fc84f5
Compare
Could you review this again, please? Regards. |
Description of the issue/feature this PR addresses:
Consider next case:
Part of code where replace is use is a label tag and pylint-odoo does not recognize it, however, Odoo convert this part of code in a xpath tag with replace attribute but in that point already passed lint.
Current behavior before PR: warnings of code like above not found.
Desired behavior after PR is merged: warnings of code like above found.
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr