Skip to content
Snippets Groups Projects
Commit 7b128095 authored by Rémi - Le Filament's avatar Rémi - Le Filament
Browse files

Add editable on Union Régionales and make name mandatory

parent b2d1ef3d
Branches
Tags
No related merge requests found
......@@ -9,7 +9,7 @@ class UnionRegionale(models.Model):
_description = 'Union Régionale'
long_name = fields.Char("Nom", required=True, index=True)
name = fields.Char("Abbréviation", index=True)
name = fields.Char("Abbréviation", required=True, index=True)
id_riga = fields.Integer("Identifiant RIGA", index=True)
_sql_constraints = [('name_uniq', 'unique (name)',
......
......@@ -264,7 +264,7 @@
<field name="name">union.regionale.tree</field>
<field name="model">union.regionale</field>
<field name="arch" type="xml">
<tree>
<tree string="Unions Régionales" editable="top">
<field name="long_name"/>
<field name="name"/>
<field name="id_riga"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment