Skip to Content
Menú
This question has been flagged
1 Respondre
4905 Vistes

Hi and Thanks for your time,

In version 14 enterprise , I have 2 Journal records:

1.  Name:  My Bank,  Type:  Bank,  Short  Code: BNK1

2. Name: Test Journal Record, Type: Bank, Short Code: TJR


Now when I create a Customer Payment or Vendor Payment and select the Journal=" Test Journal Record", the Journal Entry record created against this Payment always has "BNK1" as prefix of it's name although the selected Journal="Test Journal Record" with code "TJR".

Can anyone please explain what could be the cause of this issue and how this can be fixed.

Also, does the prefix of Journal Entry name really depends on Short Code in Journal selected on Payment? I ask this because I changed the Short Code of "My Bank" to "BNK2" but still the prefix is "BNK1". Would really appreciate your help on this issue.

Thanks  a  lot   


Avatar
Descartar
Best Answer

The prefix of Journal Entry name depends on Short Code in Journal selected on Payment if there is no payments created against the journal. But if you already have Journal Entry created and tried to change the short code, the  Journal Entry name will not take the new short code prefix and it will take the old ones. It take it the latest  value  of  sequence_prefix field in account.move table for the selected journal.

By the way , There are many changes in Odoo code regarding sequence and I prefer to get the latest Odoo 14.0  code.

To check the latest commits:

https://github.com/odoo/odoo/commits/14.0/addons/account

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
d’abr. 24
1258
2
de des. 21
4837
1
de set. 21
3292
1
de gen. 21
5445
1
d’oct. 19
3026