Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13.0][MIG] account #2275

Merged
merged 5 commits into from
Oct 21, 2020
Merged

[13.0][MIG] account #2275

merged 5 commits into from
Oct 21, 2020

Conversation

MiquelRForgeFlow
Copy link
Contributor

Migration of account.

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@gdgellatly
Copy link

ex tax invoices are showing the tax as an invoice line on historic invoices.

@MiquelRForgeFlow
Copy link
Contributor Author

ex tax invoices are showing the tax as an invoice line on historic invoices.

yeah, and that's wrong? how should be handled correctly from your POV?

@fmdl
Copy link

fmdl commented Apr 27, 2020

@MiquelRForgeFlow can make a litlle text to explain the methodoly to merge account.move and account.invoice ? Thanks

@gdgellatly
Copy link

ex tax invoices are showing the tax as an invoice line on historic invoices.

yeah, and that's wrong? how should be handled correctly from your POV?

@MiquelRForgeFlow Sorry, I opened an issue with more detail that got closed before I added that 1 liner, which was that for this particular migration I could live with it.. Anyway, whether it is wrong or not I don't know. It certainly looks wrong, but I haven't done an actual invoice on v13 yet to know what looks right, but I imagine it should look the same as doing an invoice in v13.

@khaeusler
Copy link

khaeusler commented May 13, 2020

I've tried to migrate a v12 demo DB with the PR. In the demo DB, I added taxes to a product, created a sales order and then created an invoice.

The result on the migrated invoice is:
Untaxed Amount: $ 14,750.00
Tax 15%: $ 0.00
Total: $ 16,962.50

Invoice in v12
v12

Migrated invoice in v13
v13

If the Quantity is changed, the "Tax" in the footer changes correctly, but the "Untaced amount" is incorrectly changed to 0.
v13_2

@MiquelRForgeFlow
Copy link
Contributor Author

@khaeusler thanks for your input. I will try to solve your case when having some time.

@pedrobaeza
Copy link
Member

Commit ae60003c91c9d524404d6de7ee074986f1e2cb0e shouldn't be here.

@MiquelRForgeFlow MiquelRForgeFlow force-pushed the 13.0-mig-account-script branch 6 times, most recently from 1934534 to 8c5e499 Compare June 3, 2020 12:01
@MiquelRForgeFlow MiquelRForgeFlow force-pushed the 13.0-mig-account-script branch 3 times, most recently from 2afe3c6 to 683e871 Compare October 19, 2020 08:33
@MiquelRForgeFlow
Copy link
Contributor Author

MiquelRForgeFlow commented Oct 19, 2020

Hello everybody following this PR, I have added the relation between move lines and requisition lines and account tags. Could you do one last review?

@etobella I have implemented the other way for grouped journal items. Could you check again?

@nomadic-coding could you check again if your issues persist?

@nomadic-coding
Copy link

@MiquelRForgeFlow @kos94ok-3D thanks for the fixes. Looks good now. Well done. I'll keep on testing.

@MiquelRForgeFlow MiquelRForgeFlow force-pushed the 13.0-mig-account-script branch 5 times, most recently from c71d877 to b681862 Compare October 20, 2020 15:49
Copy link
Member

@etobella etobella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with aggregated invoices and not and all works as expected

@pedrobaeza
Copy link
Member

OK, let's merge this as a good base and we can improve later if we find more things. Thanks to all the involved people in developing and reviewing.

@pedrobaeza pedrobaeza merged commit 2d1fb06 into OCA:13.0 Oct 21, 2020
@pedrobaeza pedrobaeza deleted the 13.0-mig-account-script branch October 21, 2020 18:03
@BartvandenHout
Copy link

BartvandenHout commented Mar 9, 2021

I tried a v12 > v13 upgrade today. Seems all but account is working. I still don't get the correct invoices. On my v13-database the account_move and account_move_line I get, seems to me, incorrect or no values:

account_move
Not set correctly:
type = 'entry' on all records
Not set al all:
to_check, amount_untaxed, amount_tax, amount_residual, amount_untaxed_signed, amount_tax_signed, amount_residual_signed, fiscal_position_id, invoice_payment_state, invoice_date, invoice_date_due, invoice_payment_ref, invoice_sent, invoice_origin

account_move_line
Not set:
amount_residual, is_rounding_line, exclude_from_invoice_tab

Am I forgetting something? Is my v12-dbase not correct (seems to be, though)? Is it still work-in-progress?

FYI, to get the latest OpenUpgrade installation I installed today:
pip3 install git+git://github.com/OCA/openupgradelib.git
git clone https://github.com/OCA/OpenUpgrade.git
cd OpenUpgrade
git pull origin 13.0

Btw. Thanks for all the work you put into it

@pedrobaeza
Copy link
Member

Sorry, but everything is working in our side, so you should have something incorrect in your end, or some non described steps to get to that problem, so unless you bring more information to shed some light, nothing can be done.

@BartvandenHout
Copy link

BartvandenHout commented Mar 10, 2021

Thank for your reply. I tried my method with a new database, and no invoices either. So it's definitely on my side. Can you see what's wrong with my current process?

Deleted post partially: an incorrect method should not be found on the internet

Any advice would be greatly appreciated!

@pedrobaeza
Copy link
Member

It should fall on data side, so I'm afraid I can't help you

@MiquelRForgeFlow
Copy link
Contributor Author

MiquelRForgeFlow commented Mar 10, 2021

@BartvandenHout maybe you will find a clue in the logs of your migration

@BartvandenHout
Copy link

BartvandenHout commented Mar 11, 2021

Deleted post: wrong place for posting my method. I'll find a better place for it :-)

@luistriana28

This comment has been minimized.

@pedrobaeza

This comment has been minimized.

@pedrobaeza

This comment has been minimized.

@luistriana28

This comment has been minimized.

@pedrobaeza

This comment has been minimized.

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.