-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@jackjack82 ci sarebbe da fare |
b92ef50
to
aff6770
Compare
@eLBati squashed |
'summary': 'Split Payment', | ||
'author': 'Abstract, Agile Business Group, ' | ||
'Odoo Community Association (OCA)', | ||
'website': 'http://www.abstract.it', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metterei https://github.com/OCA/l10n-italy come website
'Odoo Community Association (OCA)', | ||
'website': 'http://www.abstract.it', | ||
'license': 'AGPL-3', | ||
'depends': ['account'], |
There was a problem hiding this comment.
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
Per il resto direi OK |
aff6770
to
1d9139d
Compare
@eLBati edited manifest.py, added account_invoicing and new website. can merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grazie
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
…ymore FIX journal entry of refund
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
l10n_it_split_payment FIX tests porting to 10 l10n_it_split_payment FIX translation and README
7d2053a
to
1f41484
Compare
@jackjack82 se puoi dai un'occhiata a #570 ed eventualmente includi le modifiche in questa PR |
@eLBati cosa manca per mergiare questa PR? |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 = ( |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# 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 |
There was a problem hiding this comment.
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
La prendo in carico io |
Aperta la PR #652 |
Chiudo allora questa |
No description provided.