Skip to content

Conversation

@pedrobaeza
Copy link
Member

Forward-port of #967 to 14.0

This field was editable in previous version before invoice > move refactoring, and it's logic to allow to change payment mode once the invoice has been posted without the need of resetting it to draft.

Thus, the field has been changed to computed writable field, taking care of the consequences at model level (compute) and view level (add the field in views + proper attrs).

This commit adds tracking=True to the payment mode field as well to be aware when and who the payment mode is changed in the invoice, no matter if directly changed in draft, or through the change on the journal item.

@Tecnativa TT39850

…item

This field was editable in previous version before invoice > move
refactoring, and it's logic to allow to change payment mode once the
invoice has been posted without the need of resetting it to draft.

Thus, the field has been changed to computed writable field, taking care
of the consequences at model level (compute) and view level (add the
field in views + proper attrs).

This commits adds tracking=True to the payment mode field as well to be
aware when and who the payment mode is changed in the invoice, no matter
if directly changed in draft, or through the change on the journal item.

TT39850
@pedrobaeza pedrobaeza added this to the 14.0 milestone Jan 18, 2023
@pedrobaeza pedrobaeza force-pushed the 14.0-imp-account_payment_partner-mode_editable branch from 9955ccd to e3c0f4d Compare January 18, 2023 15:31
Complement of 998f8df

Extend the editability to the journal entry (account.move), taking
as criteria if there's no reconciliation made, which is the definitory
one.

It includes test for this new feature, both the mode propagation and
the editability check.

TT39850
@pedrobaeza pedrobaeza force-pushed the 14.0-imp-account_payment_partner-mode_editable branch from e3c0f4d to c24ebfa Compare January 18, 2023 16:11
@pedrobaeza pedrobaeza requested a review from rvalyi January 20, 2023 19:08
@pedrobaeza
Copy link
Member Author

Merging as already merged in 13.0, for continuing with the fw-port chain:

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 14.0-ocabot-merge-pr-1020-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit ed963cd into OCA:14.0 Jan 21, 2023
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 4f37744. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants