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

[MIG] l10n_it_ricevute_bancarie -> l10n_it_riba #3615

Merged
merged 90 commits into from
Oct 5, 2023

Conversation

SirAionTech
Copy link
Contributor

@SirAionTech SirAionTech commented Sep 28, 2023

Sostituisce #3131.

Ho lasciato alcune modifiche in un commit separato perché applicabili anche a 14.0, nel caso qualcuno volesse cimentarsi.

Risolve #3616 per 16.0.

eLBati and others added 30 commits September 28, 2023 09:47
Changes for 6.0 should be done in a branch for 6.0.
For the reason to use 'fields.date' instead of 'time', see
https://bugs.launchpad.net/openobject-server/+bug/925361
https://bugs.launchpad.net/openerp-web/+bug/918257
Moving to lp:~agilebg/openobject-italia/riba_v7_style
'Technical method to migrate a module from "8.0" to "10.0" branch' gives too many conflicts
porting to new API
porting to new accounting
porting views
porting tests

FIX l10n_it_ricevute_bancarie
wrong computation of payment_ids
and tests

ADD OCA dep for account_due_list
debit bank is not mandatory in CBI file

From documentation:

2.7 Struttura del record - codice fisso “40”

71-120 f an Banca/sportello domiciliataria F eventuale denominazione in chiaro della banca/sportello domiciliataria/o;
after odoo/odoo@efa4f85
otherwise:

2017-05-20 03:21:02,605 6389 ERROR openerp_test odoo.addons.l10n_it_ricevute_bancarie.tests.test_riba: ERROR: test_delete_due_cost_line (odoo.addons.l10n_it_ricevute_bancarie.tests.test_riba.TestInvoiceDueCost)
2017-05-20 03:21:02,605 6389 ERROR openerp_test odoo.addons.l10n_it_ricevute_bancarie.tests.test_riba: Traceback (most recent call last):
2017-05-20 03:21:02,605 6389 ERROR openerp_test odoo.addons.l10n_it_ricevute_bancarie.tests.test_riba: `   File "/home/travis/build/OCA/l10n-italy/l10n_it_ricevute_bancarie/tests/test_riba.py", line 205, in test_delete_due_cost_line
2017-05-20 03:21:02,605 6389 ERROR openerp_test odoo.addons.l10n_it_ricevute_bancarie.tests.test_riba: `     self.invoice.action_invoice_draft()
2017-05-20 03:21:02,606 6389 ERROR openerp_test odoo.addons.l10n_it_ricevute_bancarie.tests.test_riba: `   File "/home/travis/build/OCA/l10n-italy/l10n_it_ricevute_bancarie/models/account/account.py", line 213, in action_invoice_draft
2017-05-20 03:21:02,606 6389 ERROR openerp_test odoo.addons.l10n_it_ricevute_bancarie.tests.test_riba: `     line.unlink()
2017-05-20 03:21:02,606 6389 ERROR openerp_test odoo.addons.l10n_it_ricevute_bancarie.tests.test_riba: `   File "/home/travis/odoo-10.0/addons/account/models/account_invoice.py", line 1360, in unlink
2017-05-20 03:21:02,606 6389 ERROR openerp_test odoo.addons.l10n_it_ricevute_bancarie.tests.test_riba: `     raise UserError(_('You can only delete an invoice line if the invoice is in draft state.'))
2017-05-20 03:21:02,606 6389 ERROR openerp_test odoo.addons.l10n_it_ricevute_bancarie.tests.test_riba: ` UserError: (u'You can only delete an invoice line if the invoice is in draft state.', None)
File "odoo/lib/python2.7/site-packages/odoo/models.py", line 4369, in <lambda>
    @api.returns('self', lambda value: value.id)
AttributeError: 'NoneType' object has no attribute 'id'

while duplicating
@SirAionTech SirAionTech marked this pull request as draft October 3, 2023 15:18
@SirAionTech SirAionTech force-pushed the 16.0-mig-l10n_it_ricevute_bancarie branch from e12f143 to a5effa4 Compare October 3, 2023 15:32
@SirAionTech SirAionTech marked this pull request as ready for review October 3, 2023 15:33
Comment on lines 172 to 185
<record id="view_account_invoice_filter_unsolved" model="ir.ui.view">
<field name="name">account.invoice.select.unsolved</field>
<record id="view_account_invoice_filter_past_due" model="ir.ui.view">
<field name="name">account.invoice.select.past_due</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_account_invoice_filter"/>
<field name="arch" type="xml">
<filter name="unpaid" position="after">
<filter name="unsolved" string="Past Due" domain="[('is_unsolved','=',True)]" help="Past Due Invoices"/>
<filter name="past_due" string="Past Due" domain="[('is_past_due','=',True)]" help="Past Due Invoices"/>
</filter>
</field>
</record>
Copy link
Contributor

Choose a reason for hiding this comment

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

Se non serve eliminare

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

Comment on lines 156 to 160
<!-- MABO
<field name="tax_ids" position="after">
<field name="unsolved_move_line_ids" colspan="4" nolabel="1"/>
<field name="past_due_move_line_ids" colspan="4" nolabel="1"/>
</field>
-->
Copy link
Contributor

Choose a reason for hiding this comment

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

Se non serve Eliminare

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

SirAionTech and others added 2 commits October 5, 2023 10:45
Migration scripts not tested because `account` module cannot be migrated yet with OpenUpgrade

Co-authored-by: Tony Masci <45100916+TonyMasciI@users.noreply.github.com>
Cleanup old syntax super(Class, instance) -> super()
Remove unused code
@SirAionTech SirAionTech force-pushed the 16.0-mig-l10n_it_ricevute_bancarie branch from a5effa4 to 5a5e002 Compare October 5, 2023 08:45
@SirAionTech SirAionTech requested a review from TonyMasciI October 5, 2023 08:47
Copy link
Contributor

@andreampiovesana andreampiovesana left a comment

Choose a reason for hiding this comment

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

LGTM functional review

@eLBati
Copy link
Member

eLBati commented Oct 5, 2023

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-3615-by-eLBati-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 5, 2023
Signed-off-by eLBati
@OCA-git-bot
Copy link
Contributor

It looks like something changed on 16.0 in the meantime.
Let me try again (no action is required from you).
Prepared branch 16.0-ocabot-merge-pr-3615-by-eLBati-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 5, 2023
Signed-off-by eLBati
@OCA-git-bot
Copy link
Contributor

It looks like something changed on 16.0 in the meantime.
Let me try again (no action is required from you).
Prepared branch 16.0-ocabot-merge-pr-3615-by-eLBati-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit e6d223a into OCA:16.0 Oct 5, 2023
5 of 6 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 0acf4cf. 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.

Metodo inutilizzato per le ricevute bancarie