account-invoicing icon indicating copy to clipboard operation
account-invoicing copied to clipboard

[16.0][MIG] account_invoice_date_due: Migration to 16.0

Open smussie opened this issue 2 years ago • 26 comments

smussie avatar Apr 25 '23 09:04 smussie

@smussie change de name PR to [16.0][MIG] account_invoice_date_due: Migration to 16.0

RodrigoBM avatar May 09 '23 22:05 RodrigoBM

@smussie from 15.0 to 16.0 the field invoice_date_due became computed. That changes the way we can assert permissions to write on the field via Form. v15 vs v16

I changed the code to control the rights of the user to write on the field invoice_date_due on the backend. This is now done via inverse compute method _inverse_invoice_date_due.

santostelmo avatar May 19 '23 13:05 santostelmo

Hi @smussie

Please could you take into account these two steps from the migration wiki? (https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-16.0)

  • Check https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests for a procedure for reducing commits from "OCA Transbot...".
  • Add tests to increase code coverage.

JavierIniesta avatar Jun 22 '23 10:06 JavierIniesta

Functional review OK.

michaelslade54 avatar Aug 09 '23 00:08 michaelslade54

/ocabot migration account_invoice_date_due

rafaelbn avatar Aug 09 '23 13:08 rafaelbn

Hello @smussie !

Thank you for this migration, in order to get it meged please attend @JavierIniesta comments in

https://github.com/OCA/account-invoicing/pull/1447#issuecomment-1602360825

Hi @smussie

Please could you take into account these two steps from the migration wiki? (https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-16.0)

Check https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests for a procedure for reducing commits from "OCA Transbot...".
Add tests to increase code coverage.

rafaelbn avatar Aug 09 '23 13:08 rafaelbn

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

OCA-git-bot avatar Aug 17 '23 09:08 OCA-git-bot

Hi, When you change invoice date due, it works correctly and it changes the account move lines Date Due, But when you reset the invoice to draft and you confirm it again, the account move lines date due doesnt update.

Grabación de pantalla desde 2023-08-18 10-21-05.webm

ipconinpe avatar Aug 18 '23 08:08 ipconinpe

Please, include this changes https://github.com/OCA/account-invoicing/pull/1576/commits/9511a9f06be41edfe17c0fbcae87e62e3e45c605

josep-tecnativa avatar Oct 13 '23 14:10 josep-tecnativa

Hii @smussie could you please update this?

@smussie ??

sleyvenn avatar Mar 14 '24 10:03 sleyvenn

@smussie ??

RodrigoBM avatar Mar 21 '24 16:03 RodrigoBM

I'm taking this over. I just squashed the translation commits, and I'll include https://github.com/OCA/account-invoicing/commit/9511a9f06be41edfe17c0fbcae87e62e3e45c605 later today.

gurneyalex avatar Mar 25 '24 08:03 gurneyalex

I'll check the tests (they are green on my computer :-/ )

gurneyalex avatar Mar 26 '24 12:03 gurneyalex

the issue with reset to draft seems to be an odoo issue, and the workaround i tried has nasty side effects -> i'm dropping it for now.

What I found is that in the sync_dynamic_line context manager during the call to button_draft, we get here https://github.com/odoo/odoo/blob/01197ebdfa0f2930fa058e95af624eccc06ac2ab/addons/account/models/account_move.py#L2104

-> the needed_after and needed_before are identical -> no further processing is done.

However the existing_before and existing_after are different and the date_maturity in existing_after is different from the one in needed_after -> I would expect the code to fix things in this case.

I'm lost...

See https://github.com/odoo/odoo/blob/01197ebdfa0f2930fa058e95af624eccc06ac2ab/addons/account/models/account_move.py#L2104 for a test that illustrates the issue found by @ipconinpe

gurneyalex avatar Mar 26 '24 22:03 gurneyalex

merge?

andreampiovesana avatar Apr 10 '24 12:04 andreampiovesana

merge?

BT-anieto avatar Apr 15 '24 11:04 BT-anieto

@gurneyalex is it OK for you?

pedrobaeza avatar Apr 15 '24 12:04 pedrobaeza

/ocabot rebase

etobella avatar Aug 01 '24 06:08 etobella

@etobella The rebase process failed, because command git push --force camptocamp tmp-pr-1447:16.0-mig-account_invoice_date_due failed with output:

remote: Permission to camptocamp/account-invoicing.git denied to OCA-git-bot.
fatal: unable to access 'https://github.com/camptocamp/account-invoicing/': The requested URL returned error: 403

OCA-git-bot avatar Aug 01 '24 06:08 OCA-git-bot

@gurneyalex How do you want to proceed with the problem found? Maybe we can the issue in the ROADMAP and continue with the merge?

etobella avatar Aug 01 '24 07:08 etobella

@gurneyalex is this OK for merge?

sergiobstoj avatar Sep 27 '24 07:09 sergiobstoj

merge?

andreampiovesana avatar Sep 27 '24 08:09 andreampiovesana

can it be merged?

anmarmo1 avatar Oct 18 '24 10:10 anmarmo1

@gurneyalex @etobella is it possible to merge?

zamberjo avatar Oct 23 '24 09:10 zamberjo

@gurneyalex Can you help us with this?

@simahawk

etobella avatar Oct 23 '24 09:10 etobella

Hello, correct functional test in my flow. what's about merge?

aaladro-kernet avatar Feb 20 '25 12:02 aaladro-kernet

merge?

sergiobstoj avatar Mar 20 '25 09:03 sergiobstoj

Sorry, I missed previous notifications and @smussie is not with us anymore :innocent:

/ocabot merge nobump

simahawk avatar Mar 20 '25 10:03 simahawk

On my way to merge this fine PR! Prepared branch 16.0-ocabot-merge-pr-1447-by-simahawk-bump-nobump, awaiting test results.

OCA-git-bot avatar Mar 20 '25 10:03 OCA-git-bot