[15.0-->16.0] hr_expense_sheet all report already paid AND reconciled need to be register payment of 0,00€ amount to access 'Entry journal'?
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with the 15.0 and 16.0 versions of action_open_account_move in the hr_expense_sheet model, which the issue quotes, and see how 16.0 picks account.payment for company-paid expenses. The OpenUpgrade migration script for hr_expense is the likely place where account_move_id and payment links should be set, but the payload does not name that file. Done means reports migrated from 15.0 open their Journal Entry without a dummy payment, which needs a test or a reproduced migration run to confirm.
索引モデルが issue の本文から書いたものです。
説明
Module
hr_expense_sheet
Describe the bug
This explains what we experience:
15.0
def action_open_account_move(self):
self.ensure_one()
return {
'name': self.account_move_id.name,
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_mode': 'form',
'res_model': 'account.move',
'res_id': self.account_move_id.id
}
16.0
def action_open_account_move(self):
self.ensure_one()
return {
'name': self.account_move_id.name,
'type': 'ir.actions.act_window',
'view_mode': 'form',
'views': [[False, "form"]],
'res_model': 'account.move' if self.payment_mode == 'own_account' else 'account.payment',
'res_id': self.account_move_id.id if self.payment_mode == 'own_account' else self.account_move_id.payment_id.id,
}
16.0 works with an account.payment object for company paid expenses and I suppose that the OCA openupgrade script misses the migration logic for this.
To Reproduce
Affected versions:
16.0
Steps to reproduce the behavior:
- we open the report on version 15.0 and 16.0 CE
- When click on "Journal Entry"
In odoo 15.0 normal view "journal Entry"
In odoo 16.0 not access to "journal entry" till we 'confirm' a register payment of "0,00€"
- Edit View: Form - view name hr.expense.sheet.form
If we manually change the value of the flag : "account_move_id" invisible="0" then I can see my 'journal Entry"
Refresh the view
Fix manually,
We tried to unreconcile bank,..,, cancel the journal, report, ... and recreate the report, register payment, ... but we have 500 reports since 2023 affected
We are blocked just because peppol is available only on 16.0 CE
Thanks if anybody could highlight my path.
Best Regards
- 主要言語
- Python
- スター
- 995
- フォーク
- 837
- 平均マージ
- 2日 8時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OCA/OpenUpgrade のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
OCA/OpenUpgrade#5380 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
OCA/OpenUpgrade#6044 · コメント 6 件 · リアクション 6 件 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
OCA/OpenUpgrade#6004 · コメント 5 件 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
OCA/OpenUpgrade#5594 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
OCA/OpenUpgrade#5592 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
OCA/OpenUpgrade の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
vllm-project/vllm#64845 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
dekobon/big-code-analysis#1729 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
pydantic/pydantic-ai#12091 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100