Browse Source

Merge pull request #484 from PeterA-OpusVL/module_prototyper_template_fix

[FIX][module_prototyper][8.0] model.state - _name vs. _inherit
pull/486/head
Maxime Chambreuil 8 years ago
committed by GitHub
parent
commit
2abb221da7
  1. 2
      module_prototyper/templates/8.0/models/model_name.py.template

2
module_prototyper/templates/8.0/models/model_name.py.template

@ -6,7 +6,7 @@ from openerp.tools.translate import _
class {{ unprefix(name) }}(models.Model): class {{ unprefix(name) }}(models.Model):
{% if model.state == 'base' %}
{% if model.state == 'manual' %}
_name = "{{ model.model }}" _name = "{{ model.model }}"
{% else %} {% else %}
_inherit = "{{ model.model }}" _inherit = "{{ model.model }}"

Loading…
Cancel
Save