# Migration from 5.0 to 5.8

**URL:** https://discuss.tryton.org/t/migration-from-5-0-to-5-8/4037
**Category:** System Administrator
**Tags:** accounting
**Created:** [April 11, 2021, 9:44am UTC](https://discuss.tryton.org/t/migration-from-5-0-to-5-8/4037 "2021-04-11T09:44:34Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![jcros](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/j/bbce88/32.png) [@jcros](https://discuss.tryton.org/u/jcros)
#### Post date: [April 11, 2021, 9:44am UTC](https://discuss.tryton.org/t/migration-from-5-0-to-5-8/4037/1 "2021-04-11T09:44:34Z")

</div>

Hi all !

I attempt to migrate my tryton from 5.0 to 5.8.

I’ve two problems :

**1 - Impossible to save an invoice**

First, i can’t save an invoice (draft, posted, etc.).  
I’ve got a message after i click on save :

La valeur du champ “Compte” sur “Facture” n’est pas valide selon son domaine.  
Clôturé: !Vrai

I think i’ve missed one configuration. I searched for a while without success. i’ll try to check in the source code.

2 - Filter on field  
On Administration\>Models\>Field

When i type a filter, i’ve got an error message :

Example : Modèle: mois

“Il existe une entrée pour la table c mais elle ne peut pas être référencée de cette partie de la requête”

Thank in advance 🙂

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [April 11, 2021, 11:57am UTC](https://discuss.tryton.org/t/migration-from-5-0-to-5-8/4037/2 "2021-04-11T11:57:07Z")

</div>

It looks like the chart of account has not been updated from the template.

---

<div class="post-metadata">

### Author: ![jcros](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/j/bbce88/32.png) [@jcros](https://discuss.tryton.org/u/jcros)
#### Post date: [April 11, 2021, 12:07pm UTC](https://discuss.tryton.org/t/migration-from-5-0-to-5-8/4037/3 "2021-04-11T12:07:18Z")

</div>

Thank you @ced ,

I’ve missed something during the Update ? Or i did a misconfiguration in the past ?

i think my version of tryton starts at 4.X

How can i fix it ?

Thank you.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [April 11, 2021, 12:08pm UTC](https://discuss.tryton.org/t/migration-from-5-0-to-5-8/4037/4 "2021-04-11T12:08:43Z")

</div>

> [@jcros](#):
>
> I’ve missed something during the Update ?

I do not know. Did you run the chart of account update wizard?

---

<div class="post-metadata">

### Author: ![jcros](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/j/bbce88/32.png) [@jcros](https://discuss.tryton.org/u/jcros)
#### Post date: [April 11, 2021, 2:00pm UTC](https://discuss.tryton.org/t/migration-from-5-0-to-5-8/4037/5 "2021-04-11T14:00:20Z")

</div>

I think, i didn’t run the wizard. I’m not sure.

I searched in the version’s news, but i didn’t saw it.

I’ve a wizard in the financial’s module, which are empty : Account configuration with some default value to define (default customer account, rounding method, etc)

It seems that somes default chart are not present or not configured. But if i check an existing customer this informaiton are filled. (default customer account : Clients et comptes rattachés).

When i attemp to find it on the company, i didn’t find it. The list associated is empty.

Thanks

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [April 11, 2021, 2:29pm UTC](https://discuss.tryton.org/t/migration-from-5-0-to-5-8/4037/6 "2021-04-11T14:29:19Z")

</div>

> [@jcros](#):
>
> I searched in the version’s news, but i didn’t saw it.

This is a general procedure that must be run after each update see [https://docs.tryton.org/projects/modules-account/en/latest/usage/structure.html#updating-the-accounts-structure](https://docs.tryton.org/projects/modules-account/en/latest/usage/structure.html#updating-the-accounts-structure)

---

<div class="post-metadata">

### Author: ![jcros](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/j/bbce88/32.png) [@jcros](https://discuss.tryton.org/u/jcros)
#### Post date: [April 11, 2021, 3:36pm UTC](https://discuss.tryton.org/t/migration-from-5-0-to-5-8/4037/7 "2021-04-11T15:36:29Z")

</div>

@ced  
Thank you, i did an update chart with “Financial ‣ Configuration ‣ Templates ‣ Update Chart of Account from Template”. The list of the default account isn’t empty.

Before on parties, the default account was 410 Client et compte.  
On one party, I change for 4111, now i can save an invoice.

Can i find an explanation of this field in the documentation ?

Thank you

---

<div class="post-metadata">

### Author: ![jcros](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/j/bbce88/32.png) [@jcros](https://discuss.tryton.org/u/jcros)
#### Post date: [April 11, 2021, 8:34pm UTC](https://discuss.tryton.org/t/migration-from-5-0-to-5-8/4037/8 "2021-04-11T20:34:53Z")

</div>

I’ve modified default receivable account on all customer.  
I can now create invoice, but i can’t change an invoice to paid.  
i’ve got the same error “La valeur du champ « Compte » sur « Ligne de mouvement comptable » n’est pas valide selon son domaine”.

Can i make something through the application or i must change a value in the database.

I’ve check if i can modify the account on the move line, but the invoice is posted, so i can’t.

it’s very confusing if i must do a credit note … I only migrated my version

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [April 11, 2021, 10:07pm UTC](https://discuss.tryton.org/t/migration-from-5-0-to-5-8/4037/9 "2021-04-11T22:07:37Z")

</div>

The account 410 has been closed following [Account 400 and 410 should be view (#7976) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue7976) and normally it should not have been used to book invoices.  
You can override the template and re-open the account until you solved the remaining invoices.

---

<div class="post-metadata">

### Author: ![jcros](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/j/bbce88/32.png) [@jcros](https://discuss.tryton.org/u/jcros)
#### Post date: [April 12, 2021, 12:02pm UTC](https://discuss.tryton.org/t/migration-from-5-0-to-5-8/4037/10 "2021-04-12T12:02:47Z")

</div>

Hi @ced

It’s done 🙂 i’ve checked override, unchecked closed, checked reconciliation, check party required.  
I make the payment on the invoice.  
Unchecked override, and update from the account template.

For the second point, i’ll make another topic.  
Thank you !!

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [May 12, 2021, 12:02pm UTC](https://discuss.tryton.org/t/migration-from-5-0-to-5-8/4037/11 "2021-05-12T12:02:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
