Skip to content

11.0 mig l10n it ricevute bancarie rt#680

Closed
ruben-tonetto wants to merge 43 commits into
OCA:11.0from
ruben-tonetto:11.0-mig-l10n_it_ricevute_bancarie-rt
Closed

11.0 mig l10n it ricevute bancarie rt#680
ruben-tonetto wants to merge 43 commits into
OCA:11.0from
ruben-tonetto:11.0-mig-l10n_it_ricevute_bancarie-rt

Conversation

@ruben-tonetto

Copy link
Copy Markdown

No description provided.

@oca-clabot

Copy link
Copy Markdown

Hey @ruben-tonetto, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@eLBati

eLBati commented Dec 7, 2018

Copy link
Copy Markdown
Member

@ruben-tonetto vedo conflitti su oca_dependencies.txt. Dovresti fare rebase sul branch 11.0 aggiornato

@ruben-tonetto ruben-tonetto force-pushed the 11.0-mig-l10n_it_ricevute_bancarie-rt branch from d3972a1 to db954de Compare December 9, 2018 18:06
@ruben-tonetto

Copy link
Copy Markdown
Author

Ho fatto

@eLBati

eLBati commented Dec 12, 2018

Copy link
Copy Markdown
Member

@ruben-tonetto controlla travis per favore

@ruben-tonetto ruben-tonetto force-pushed the 11.0-mig-l10n_it_ricevute_bancarie-rt branch from db954de to d9c32e3 Compare December 12, 2018 21:42
@ruben-tonetto

Copy link
Copy Markdown
Author

@eLBati

eLBati commented Dec 13, 2018

Copy link
Copy Markdown
Member

Flake8 dice ancora l10n_it_ricevute_bancarie/tests/test_riba.py:124:13: F821 undefined name 'file'

I test invece falliscono per

File "/home/travis/build/OCA/l10n-italy/l10n_it_ricevute_bancarie/tests/test_riba.py", line 8, in <module>
from odoo.report import render_report
ImportError: No module named 'odoo.report'

Dovresti provare ad eseguire i test in locale
https://www.odoo.com/documentation/11.0/reference/testing.html

I test vanno eseguiti su DB con dati demo.
Puoi anche guardare come fa travis, cioè

/home/travis/OCB-11.0/odoo-bin -d openerp_template --log-level=info --stop-after-init --init website_mail,bus,date_range,website,website_form,http_routing,sale_stock,product,sale_management,base_vat,account_invoicing,analytic,base_setup,website_sale,sale,stock,rating,web_planner,account,stock_picking_package_preparation_line,sale_payment,web_tour,mail,sales_team,website_rating,account_fiscal_year,payment,account_group_menu,web,base_iban,portal,barcodes,base,stock_account,web_editor,decimal_precision,stock_picking_package_preparation,website_payment

per creare il DB e

/home/travis/OCB-11.0/odoo-bin -d openerp_test --db-filter=^openerp_test$ --stop-after-init --log-level info --log-handler openerp.tools.yaml_import:DEBUG --test-enable --init l10n_it_abicab,l10n_it_account,l10n_it_account_tax_kind,l10n_it_causali_pagamento,l10n_it_codici_carica,l10n_it_corrispettivi,l10n_it_corrispettivi_sale,l10n_it_ddt,l10n_it_esigibilita_iva,l10n_it_fiscal_document_type,l10n_it_fiscal_payment_term,l10n_it_fiscalcode,l10n_it_ipa,l10n_it_pec,l10n_it_rea,l10n_it_ricevute_bancarie,l10n_it_split_payment,l10n_it_website_sale_corrispettivi,l10n_it_withholding_tax,l10n_it_withholding_tax_causali,l10n_it_withholding_tax_payment

per testare i moduli

@ruben-tonetto

Copy link
Copy Markdown
Author

Flake8 è passato.

ho creato l'ambiente di test per l'errore ModuleNotFoundError: No module named 'odoo.report' ma mi si ripresenta (in from odoo.report import render_report)

dove si trova ora questo modulo nella 11?

@labaggio

Copy link
Copy Markdown

Flake8 è passato.

ho creato l'ambiente di test per l'errore ModuleNotFoundError: No module named 'odoo.report' ma mi si ripresenta (in from odoo.report import render_report)

dove si trova ora questo modulo nella 11?

hai seguito queste specifiche ? https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-11.0

C'è una parte dedicata ai cambiamenti dei report.
Sto provando ad utilizzarlo e le stampe si rompono.

@ruben-tonetto

Copy link
Copy Markdown
Author

@labaggio grazie del suggerimento.
Ho apportato le modifiche, ma devo controllare.
Se puoi verifica come girano le stampe

@labaggio

labaggio commented Jan 24, 2019

Copy link
Copy Markdown

@labaggio grazie del suggerimento.
Ho apportato le modifiche, ma devo controllare.
Se puoi verifica come girano le stampe

@ruben-tonetto Non funziona..
Pensi di riuscire a sistemare il modulo in tempi brevi?
Se non riesci avvisa che lo prendo in carico.
Se provi a stampare una distinta esce questo errore:
AttributeError: 'report.l10n_it_ricevute_bancarie.distinta_qweb' object has no attribute 'get_report_values'

@ruben-tonetto ruben-tonetto force-pushed the 11.0-mig-l10n_it_ricevute_bancarie-rt branch 2 times, most recently from a4b9c19 to 859cf56 Compare January 24, 2019 20:50
@ruben-tonetto

Copy link
Copy Markdown
Author

@labaggio ho sistemato il report e ho fatto la stampa, funziona

@labaggio

labaggio commented Feb 12, 2019

Copy link
Copy Markdown

@labaggio ho sistemato il report e ho fatto la stampa, funziona

@ruben-tonetto Per me va bene, manca solo di raggruppare i commit per autore, così poi riusciamo a farla mergiare, giusto @eLBati? :)
https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests

@ruben-tonetto ruben-tonetto force-pushed the 11.0-mig-l10n_it_ricevute_bancarie-rt branch from 859cf56 to 2caa4ba Compare February 23, 2019 09:03
scigghia and others added 19 commits February 28, 2019 20:13
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
…on riba line, and button 'Settle all' that allow to settle all the riba lines that are in state 'Accredited' (OCA#359)
…zione, viene usato sempre lo stesso conto. (OCA#472)

Allora per la riconciliazione prendiamo comunque la riga che ci interessa, quella con 'debit'
…form view 2) autopost settle and unsolved moves 3) bank expenses in move only if existing, does not make sense to have 0 value accounting lines (OCA#484)
prevent to use a bank accoun tfor "Ri.Ba. bank account", otherwise, if a bank account is used, its move lines will appear as blu lines in bank statement reconciliation
[FIX] file() to open() in test_riba

[FIX] distinta_qweb report

[FIX] odoo.report.render_report deprecated in test_riba.py
@ruben-tonetto ruben-tonetto force-pushed the 11.0-mig-l10n_it_ricevute_bancarie-rt branch from 2caa4ba to 40b8549 Compare March 2, 2019 18:11

@dcorio dcorio left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ci sono errori sul form del partner, vedi commenti

<field name="inherit_id" ref="base.view_partner_form"/>
<field name="groups_id" eval="[(4, ref('account.group_account_user'))]"/>
<field name="arch" type="xml">
<field name="property_payment_term_id" position="after">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

questo separatore ed il gruppo rompono la vista, facendo sparire tutte le label ai campi.
oltretutto il campo property_payment_term_id non deriva dal modulo base, ma dal modulo account

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@ruben-tonetto puoi sistemare questa cosa?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@labaggio purtroppo mi serve parecchio tempo per sistemarlo; meglio che ti passo il modulo se tu riesci a completarlo in tempi brevi

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ho fatto un PR sul tuo repo, devi solo fare il merge
lbaggio#2

@SimoRubi

Copy link
Copy Markdown
Member

@dcorio puoi aggiornare la tua review dopo gli ultimi cambiamenti?

@eLBati

eLBati commented Aug 31, 2019

Copy link
Copy Markdown
Member

@dcorio @alessandrocamilli voi lo usate in produzione?

@warp10

warp10 commented Oct 12, 2020

Copy link
Copy Markdown
Contributor

@dcorio @alessandrocamilli voi lo usate in produzione?

Rispondo con giusto un lieve ritardo: sì, è in uso sui clienti 11 da un annetto abbondante ormai

'account.invoice', 'invoice_unsolved_line_rel', 'line_id',
'invoice_id', 'Unsolved Invoices')
iban = fields.Char(
related='partner_id.bank_ids.acc_number', string='IBAN', store=False)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Non so se questo PR e ancora attivo. In ogni caso, il cliente può avere vari conti bancari, se in uno ha un mandato anullato, il related non lo sa e mete un iban non valido.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Non so se questo PR e ancora attivo. In ogni caso, il cliente può avere vari conti bancari, se in uno ha un mandato anullato, il related non lo sa e mete un iban non valido.

Grazie. Sai se il problema è anche sulla 12?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Forse no, il iban si ottiene di un altro modo, ma sembra anche di ottenere il primo conto che trova senza vedere il mandato. Ma come ho detto non sono sicuro, non ho una 12 per provare adesso.

@github-actions

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 24, 2021
@github-actions github-actions Bot closed this Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.