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

[IMP]odoo_vscode_snippets #40

Conversation

nhatnm0612
Copy link
Contributor

What this PR does?

  • Remove @api.multi which is no longer supported after odoo 12,
  • Adding xml snippets for <group> tag,
  • Adding python snippets for _sql_constraints,
  • Ensure_one,
  • Super hook method

@nhatnm0612
Copy link
Contributor Author

@jat-odoo Pls have a look at this PR

snippets/python-snippets.json Show resolved Hide resolved
snippets/python-snippets.json Outdated Show resolved Hide resolved
snippets/python-snippets.json Outdated Show resolved Hide resolved
snippets/python-snippets.json Outdated Show resolved Hide resolved
@nhatnm0612 nhatnm0612 force-pushed the add_xml_group_tag_python_ensure_one_super_hook_sql_constraints branch from bdd5344 to 224a87d Compare September 13, 2021 12:22
README.md Outdated
@@ -70,7 +70,9 @@ fmany2many | Add many2many field
fcompute | Add compute field
fcomputei | Add compute field with inverse method
fonchange | Add onchange field
fconstrains | Add constrains on field
fconstrains | Add constrains on field (SQL/ORM)
super | Super calling hook method
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo should be override.

"\t${0}",
"\treturn res"
],
"description": "Add super hook method"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here

    remove @api.multi which is no longer supported after odoo 12,
    adding xml snippets for <group> tag,
    adding python snippets for _sql_constraints,
    ensure_one and super hook method
@nhatnm0612 nhatnm0612 force-pushed the add_xml_group_tag_python_ensure_one_super_hook_sql_constraints branch from 224a87d to 6c312d2 Compare September 17, 2021 08:02
@jat-odoo jat-odoo added the enhancement 👍 New feature or request label Sep 18, 2021
@jat-odoo jat-odoo added this to the v1.4.0 milestone Sep 18, 2021
@jat-odoo jat-odoo merged commit 32ee605 into Droggol:master Sep 18, 2021
@jat-odoo jat-odoo added the merged 🎉 Merged label Sep 18, 2021
@jat-odoo
Copy link
Collaborator

Thanks @nhatnm0612

@yajo yajo mentioned this pull request Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 👍 New feature or request merged 🎉 Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants