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

[11.0][MIG] l10n it split payment: Migration to 11.0 #525

Closed
wants to merge 19 commits into from

Conversation

jackjack82
Copy link
Member

No description provided.

@jackjack82 jackjack82 changed the title 11.0 mig l10n it split payment [11.0][MIG] l10n it split payment: Migration to 11.0 Jun 28, 2018
@pedrobaeza pedrobaeza mentioned this pull request Jun 30, 2018
35 tasks
Copy link
Member

@eLBati eLBati left a comment

Choose a reason for hiding this comment

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

LGTM

@eLBati
Copy link
Member

eLBati commented Jun 30, 2018

@jackjack82 ci sarebbe da fare rebase + squash dei gruppi di commit con lo stesso autore

@jackjack82
Copy link
Member Author

@eLBati quindi mergiare i commit di trasbot, così come anche i tuoi? Ad esempio mergiare insieme
23b880c, a574f59 e 09fbf1e?

@jackjack82 jackjack82 force-pushed the 11.0-mig-l10n_it_split_payment branch from b92ef50 to aff6770 Compare July 2, 2018 15:49
@jackjack82
Copy link
Member Author

@eLBati squashed

'summary': 'Split Payment',
'author': 'Abstract, Agile Business Group, '
'Odoo Community Association (OCA)',
'website': 'http://www.abstract.it',
Copy link
Member

Choose a reason for hiding this comment

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

'Odoo Community Association (OCA)',
'website': 'http://www.abstract.it',
'license': 'AGPL-3',
'depends': ['account'],
Copy link
Member

Choose a reason for hiding this comment

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

@jackjack82 penso debba dipendere anche da account_invoicing

@eLBati
Copy link
Member

eLBati commented Jul 3, 2018

Per il resto direi OK

@jackjack82 jackjack82 force-pushed the 11.0-mig-l10n_it_split_payment branch from aff6770 to 1d9139d Compare July 3, 2018 07:46
@jackjack82
Copy link
Member Author

@eLBati edited manifest.py, added account_invoicing and new website. can merge.

Copy link
Member

@eLBati eLBati left a comment

Choose a reason for hiding this comment

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

grazie

@eLBati
Copy link
Member

eLBati commented Jul 6, 2018

I commit 5ca325c e 6d67b87 non dovrebbero essere qua , in quanto già in 11.0
Per aggiungerli alla build di questa PR, devi fare rebase su 11.0

Davide Corio and others added 16 commits July 6, 2018 17:19
Removing superfluous method

Refactoring action_move_create with reconciliation

handling invoice cancel

ADD README and copyright

REF _compute_amount : clearer

ADD tests

FIX README, import, icon and manifest

ADD _unreconcile_sp
REF split_payment setting invoice total credit = amount to pay

Remove old useless field
OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex
otherwise you could get into errors like

  File "/srv/odoo-8-agilebg-test/agilebg/parts/odoo/addons/account/account_invoice.py", line 647, in button_reset_taxes
    account_invoice_tax.create(taxe)
  File "/srv/odoo-8-agilebg-test/agilebg/parts/odoo/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/srv/odoo-8-agilebg-test/agilebg/parts/odoo/openerp/models.py", line 4093, in create
    record = self.browse(self._create(old_vals))
  File "/srv/odoo-8-agilebg-test/agilebg/parts/odoo/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/srv/odoo-8-agilebg-test/agilebg/parts/odoo/openerp/api.py", line 508, in new_api
    result = method(self._model, cr, uid, *args, **old_kwargs)
  File "/srv/odoo-8-agilebg-test/agilebg/parts/odoo/openerp/models.py", line 4303, in _create
    recs.recompute()
  File "/srv/odoo-8-agilebg-test/agilebg/parts/odoo/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/srv/odoo-8-agilebg-test/agilebg/parts/odoo/openerp/models.py", line 5756, in recompute
    name: rec[name] for name in names
  File "/srv/odoo-8-agilebg-test/agilebg/parts/odoo/openerp/models.py", line 5756, in <dictcomp>
    name: rec[name] for name in names
  File "/srv/odoo-8-agilebg-test/agilebg/parts/odoo/openerp/models.py", line 5640, in __getitem__
    return self._fields[key].__get__(self, type(self))
  File "/srv/odoo-8-agilebg-test/agilebg/parts/odoo/openerp/fields.py", line 840, in __get__
    return record._cache[self]
  File "/srv/odoo-8-agilebg-test/agilebg/parts/odoo/openerp/models.py", line 6022, in __getitem__
    value = self._recs.env.cache[field][self._recs.id]
KeyError: 663
OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex
…t_invoice_sequential_dates

Refactoring for variables name to be more clear
OCA Transbot updated translations from Transifex
eLBati and others added 3 commits July 6, 2018 17:19
@jackjack82 jackjack82 force-pushed the 11.0-mig-l10n_it_split_payment branch from 7d2053a to 1f41484 Compare July 6, 2018 15:19
@eLBati
Copy link
Member

eLBati commented Aug 16, 2018

@jackjack82 se puoi dai un'occhiata a #570 ed eventualmente includi le modifiche in questa PR

@labaggio
Copy link
Contributor

@eLBati cosa manca per mergiare questa PR?

@eLBati
Copy link
Member

eLBati commented Oct 25, 2018

@labaggio includere la #570

Copy link
Member

@SimoRubi SimoRubi left a comment

Choose a reason for hiding this comment

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

Solo review del codice, ho segnato da fare qualche refactoring ma possiamo soprassedere visto che è una PR di migrazione

'Split Payment',
related='fiscal_position_id.split_payment')

@api.one
Copy link
Member

Choose a reason for hiding this comment

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

Deprecato

# return the move line ids with the same account as the invoice self
if not self.id:
return []
query = (
Copy link
Member

Choose a reason for hiding this comment

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

Meglio usare ORM


@api.multi
def get_receivable_line_ids(self):
# return the move line ids with the same account as the invoice self
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# return the move line ids with the same account as the invoice self
# return the move line ids with the same account as the invoice self
self.ensure_one()

res = super(AccountInvoice, self).action_move_create()
for invoice in self:
if (
invoice.fiscal_position_id and
Copy link
Member

Choose a reason for hiding this comment

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

Puoi controllare direttamente il campo related sulla fattura

@ruben-tonetto
Copy link
Contributor

La prendo in carico io

@ruben-tonetto
Copy link
Contributor

Aperta la PR #652

@eLBati
Copy link
Member

eLBati commented Nov 8, 2018

Chiudo allora questa

@eLBati eLBati closed this Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.