Skip to content

[MIG] l10n_it_ricevute_bancarie -> l10n_it_riba#3615

Merged
OCA-git-bot merged 90 commits into
OCA:16.0from
SirAionTech:16.0-mig-l10n_it_ricevute_bancarie
Oct 5, 2023
Merged

[MIG] l10n_it_ricevute_bancarie -> l10n_it_riba#3615
OCA-git-bot merged 90 commits into
OCA:16.0from
SirAionTech:16.0-mig-l10n_it_ricevute_bancarie

Conversation

@SirAionTech

@SirAionTech SirAionTech commented Sep 28, 2023

Copy link
Copy Markdown
Contributor

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 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 thread l10n_it_riba/views/account_view.xml Outdated
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
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

👍

Comment thread l10n_it_riba/views/account_view.xml Outdated
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
Copy Markdown
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
Copy Markdown
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

@andreampiovesana andreampiovesana left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM functional review

@eLBati

eLBati commented Oct 5, 2023

Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@OCA-git-bot

Copy link
Copy Markdown
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