Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[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'?

オープン
#5,464 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
18/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
backend

調査の方向性

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 の本文から書いたものです。

説明

bug

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:

  1. we open the report on version 15.0 and 16.0 CE
Image
  1. When click on "Journal Entry"
Image

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€"

  1. Edit View: Form - view name hr.expense.sheet.form
Image

If we manually change the value of the flag : "account_move_id" invisible="0" then I can see my 'journal Entry"

Refresh the view

Image Image Image

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OCA/OpenUpgrade のほかの issue

OCA/OpenUpgrade の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。