Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4582 Weergaven

I created a module to supply some data of my customization. This data include some logins, some analytic accounts and other data.

When I install the module for the first time it installs successfully. When I try to upgrade it misses some models and give me assersion error that this module does not exist.

For example, in the main xml file of this module I added the following record


<openerp>

<data noupdate="0">

...

...

<!-- budgetory position -->

<record model="account.budget.post" id="budg_01">

<field name="code">template</field>

<field name="name">template</field>

</record>

<record model="account.budget.post" id="budg_02">

<field name="code">NCTIS purchase</field>

<field name="name">NCTIS purchase</field>

</record>

...

...

</data>

</openerp>

to add the header of a budgetory position to the application. After the fresh installation I checked budgetory position table and found that the two positions are added ok.

When I tried to upgrade I got this error :


File "D:\openerp-7.0-latest\openerp-7.0-20140804-231303\openerp\tools\convert.py", line 852, in parse

self._tags[rec.tag](self.cr, rec, n)

File "D:\openerp-7.0-latest\openerp-7.0-20140804-231303\openerp\tools\convert.py", line 742, in _tag_record

assert model, "The model %s does not exist !" % (rec_model,)

AssertionError: The model account.budget.post does not exist !


Any help ?



Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
nov. 24
29958
1
dec. 21
2724
0
dec. 21
2296
2
mrt. 15
10387
1
mrt. 15
3928