跳至內容
選單
此問題已被標幟
1 回覆
5068 瀏覽次數

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   


頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
4月 24
1379
2
12月 21
4986
1
9月 21
3378
1
1月 21
5573
1
10月 19
3104