i am trying to make a simple module but i do not succeed.
tryton.cfg ===================
[tryton]
version=6.0.0
depends:
party
ir
xml:
interet.xml
__init__.pi ============================
from trytond.pool import Pool
from . import interet
def register():
Pool.register(
interet.Interets,
module='formo_delatour', type_='model')
interet.py =====================
from trytond.i18n import gettext
from trytond.pool import PoolMeta
from trytond.model import ModelSQL, fields
class Interets(ModelSQL):
"Interets"
__name__ = 'party.formo_interets'
_rec_name = 'Interets'
interet = fields.Char("Interets", required=True, select=True, size=15)
interet.xml =========================
<tryton>
<data>
<!-- views -->
<record model="ir.ui.view" id="interet_view_form">
<field name="model">party.formo_interets</field>
<field name="type">form</field>
<field name="name">interet_form</field>
</record>
<record model="ir.ui.view" id="interet_view_tree">
<field name="model">party.formo_interets</field>
<field name="type">tree</field>
<field name="name">interet_tree</field>
</record>
<!-- actions -->
<record model="ir.action.act_window" id="act_interet_form">
<field name="name">Interets</field>
<field name="res_model">party.formo_interets</field>
</record>
<record model="ir.action.act_window.view" id="act_interet_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="interet_view_tree"/>
<field name="act_window" ref="act_interet_form"/>
</record>
<record model="ir.action.act_window.view" id="act_interet_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="interet_view_form"/>
<field name="act_window" ref="act_interet_form"/>
</record>
<!-- menus -->
<menuitem
name="Interets"
sequence="20"
id="menu_interets"/>
<menuitem
parent="menu_interets"
action="act_interet_form"
sequence="10"
id="menu_interets_form"/>
</data>
</tryton>
i just have a forbiden from a fresh pg_restore. i am almost desperate (but not an housewife)