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

[14.0][MIG] l10n_it_withholding_tax #1988

Merged
merged 89 commits into from
May 28, 2021

Conversation

TheMule71
Copy link
Contributor

Porting di l10n_it_withholding_tax dalla 12.0 alla 14.0

DA COMPLETARE

--
Confermo di aver firmato il CLA https://odoo-community.org/page/cla e di aver letto le linee guida su https://odoo-community.org/page/contributing

@TheMule71 TheMule71 marked this pull request as draft December 18, 2020 09:26
@TheMule71 TheMule71 force-pushed the 14.0-mig-l10n_it_withholding_tax branch from e56da14 to a3d67d5 Compare December 18, 2020 22:06
@TheMule71 TheMule71 mentioned this pull request Jan 15, 2021
74 tasks
@TheMule71 TheMule71 force-pushed the 14.0-mig-l10n_it_withholding_tax branch from a3d67d5 to 9752b78 Compare January 15, 2021 16:18
@eLBati
Copy link
Member

eLBati commented Jan 22, 2021

A proposito della riconciliazione: il widget che usavamo è stato spostato in enterprise; in OCA viene reintrodotto tramite OCA/account-reconcile#359

Sarà probabilmente necessario creare 2 moduli "ponte"

  • uno che dipende da ritenute + account_reconciliation_widget
  • uno che dipende da ritenute + il modulo enterprise

Per reintegrare le funzionalità relative a account.reconciliation.widget

@TheMule71 TheMule71 force-pushed the 14.0-mig-l10n_it_withholding_tax branch from 9752b78 to c638413 Compare January 22, 2021 11:29
@TheMule71 TheMule71 force-pushed the 14.0-mig-l10n_it_withholding_tax branch from c638413 to 7a901bf Compare February 25, 2021 18:42
@TheMule71 TheMule71 force-pushed the 14.0-mig-l10n_it_withholding_tax branch from 7a901bf to f289f9f Compare March 24, 2021 12:50
@CiroBoxHub
Copy link
Contributor

CiroBoxHub commented Mar 24, 2021

Ciao, volevo segnalare questo errore che si verifica al momento della scelta di un prodotto in una nuova riga fattura quando si sta creando una nuova fattura.
Non appena si seleziona un prodotto appare l'errore:
`Errore:
Odoo Server Error

Traceback (most recent call last):
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/http.py", line 912, in call
return self.method(*args, **kw)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/http.py", line 531, in response_wrap
response = f(*args, **kw)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/addons/web/controllers/main.py", line 1377, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/addons/web/controllers/main.py", line 1369, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/addons/account/models/account_move.py", line 1048, in onchange
return super(AccountMove, self.with_context(recursive_onchanges=False)).onchange(values, field_name, field_onchange)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/models.py", line 6234, in onchange
for name in nametree
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/models.py", line 6235, in
if name not in done and snapshot0.has_changed(name)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/models.py", line 6066, in has_changed
return self[name] != record[name]
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/models.py", line 5664, in getitem
return self._fields[key].get(self, type(self))
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/fields.py", line 934, in get
self.recompute(record)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/fields.py", line 1120, in recompute
self.compute_value(recs)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/fields.py", line 1142, in compute_value
records._compute_field_value(self)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/addons/mail/models/mail_thread.py", line 412, in _compute_field_value
return super()._compute_field_value(field)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/models.py", line 4059, in _compute_field_value
getattr(self, field.compute)()
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/l10n-italy/l10n_it_withholding_tax/models/account.py", line 316, in _compute_amount_withholding_tax
if not line.withholding_tax_generated_by_move_id:
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/cirobox/odoo/odoo14/apps/odoo/lib/odoo-14.0.post20210130-py3.7.egg/odoo/http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
AttributeError: 'NewId' object has no attribute 'withholding_tax_generated_by_move_id'`

Quando una nuova riga è in fase di creazione sembra che questo attributo non è disponibile.
Commentando da riga 314 a riga 316 l'esecuzione continua, ma si presenta un errore quando viene selezionata la ritenuta in riga.

@TheMule71 TheMule71 force-pushed the 14.0-mig-l10n_it_withholding_tax branch from f289f9f to 2672ea9 Compare April 16, 2021 08:42
@CiroBoxHub
Copy link
Contributor

CiroBoxHub commented Apr 23, 2021

Buongiorno, in virtù di questo problema è della modifica effettuata #1984 (comment) è necessario inserire anche il m2m delle ritenute nella form altrimenti non è possibile gestirle in riga.

@fredzamoabg
Copy link
Contributor

@TheMule71 ho portato avanti la migrazione in TheMule71#9 (PR aperta direttamente sul tuo branch) puoi verificare?

@eLBati
Copy link
Member

eLBati commented Apr 27, 2021

Anche: #2223

@eLBati
Copy link
Member

eLBati commented Apr 29, 2021

e #2252

eLBati and others added 13 commits May 5, 2021 14:38
…aturity date

[ADD] author

[FIX] copyright & description

[IMP] l10n_it_withholding_tax - description
[fix] descriptions

[fix] dependency

[fix] config

[fix] config view

[fix] using invoice partner in reconcile

[imp] using tax authority partner

[add] tests first version

[imp] tests

[imp] tests

[ADD] field help

[fix] using right date and period when paying
FIX copyright headers

FIX PEP8

IMP description

IMP description and copyright

FIX PEP8
OCA Transbot updated translations from Transifex
Creation of WT statement

Wt moves creation

Quote for payments
[FIX] 10.0 api compat

First beta

Travis check

Ref name

[FIX] Compute WT only if the invoice has wt lines

Added feature to unreconcile the wt move created by payment, and after it possible to re-reconcile
[FIX] add display_name on class  withholding.tax.move withholding.tax.statement

[FIX] add display_name on class  withholding.tax.move withholding.tax.statement

[FIX] removed select on class l10n_it_withholding_tax l10n_it_withholding_tax_payment

[FIX] add README
@TheMule71 TheMule71 deleted the 14.0-mig-l10n_it_withholding_tax branch May 28, 2021 15:58
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request May 28, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request May 28, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request May 28, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 6, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 18, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 18, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 2, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 2, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 9, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 9, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 9, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 9, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 17, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 20, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 30, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 30, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Aug 6, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Aug 20, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Sep 3, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Sep 17, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 1, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 8, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 15, 2021
TheMule71 added a commit to TheMule71/l10n-italy that referenced this pull request Jan 21, 2022
TheMule71 added a commit to TheMule71/l10n-italy that referenced this pull request Jan 21, 2022
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 29, 2022
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.