i am tryoig to add a field interest to party, the same like catégories.
si i made a module with
=========== interets.py ==================
class Interets(DeactivableMixin, tree(separator=' / '), ModelSQL, ModelView):
"Interets"
__name__ = 'party.formo_interets'
name = fields.Char(
"Name", required=True, translate=True,
help="The main identifier of the Interets.")
the tables is created…
I tried to alter table party_party
class Party(DeactivableMixin, ModelSQL, ModelView, MultiValueMixin):
__name__ = 'party.party'
_order_name = 'write_date'
_order = [('write_date', 'DESC')]
interets = fields.Many2Many(
'party.party-party.formo_interets', 'party', 'interet', "Interets",
help="The interets the party belongs to.")
but nothing change in party.
why the rel table is party.party-party.formo_interets (like for categories) and not
party.party_party.formo_interets (with an underscore ) ?
i think the reason is that party.party is not in y module, but it works for party_siret