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

[16.0] [MIG] l10n_it_reverse_charge #3566

Merged
merged 61 commits into from
Sep 9, 2023

Commits on Aug 2, 2023

  1. [ADD] l10n_it_reverse_charge

    [IMP] pep8
    
    [FIX] typos and pep8
    
    [IMP] l10n_it_reverse_charge refactoring
    
    [ADD] account_move_skip
    
    [IMP] skip expr
    
    [IMP] i18n
    
    [IMP] tax mapping
    
    [IMP] mandatory fields
    
    [IMP] autohide if == 0
    
    [REM] pdb
    
    [IMP] no need to specify expr
    
    [FIX] write if no credit/debit
    dcorio authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    13fe79e View commit details
    Browse the repository at this point in the history
  2. [REM] account_move_skip module

    [ADD] l10n_it_reverse_charge: add initial draft of README
    
    [ADD] l10n_it_reverse_charge: add note about 'Integrazione IVA'
    
    [ADD] l10n_it_reverse_charge: add check if there is default credit account defined on Self Invoice Payment Journal
    
    [ADD] l10n_it_reverse_charge: set rc on invoice.line according to RC Type defined on fiscal position
    
    [FIX] l10n_it_reverse_charge: rename tax_src_id and tax_dest_id fields to be more consinstent and easier to understand their purpose
    
    [IMP] l10n_it_reverse_charge: adapt to latest OCA guidelines
    
    [FIX] l10n_it_reverse_charge: fix 'WARNING test_reverse_charge openerp.modules.loading: The model account.rc.type has no access rules'
    
    [ADD] l10n_it_reverse_charge
    Handle invoice supplier cancellation and reopening for method 'selfinvoice':
    * cancellation: both supplier invoice and selfinvoice are cancelled
    * reopening: data on existing selfinvoice are copied to supplier invoice
    
    [FIX] l10n_it_reverse_charge: fix WARNING account.invoice.line.create() with unknown fields: uom_id
    
    [IMP] l10n_it_reverse_charge: improve README
    
    [IMP] l10n_it_reverse_charge: add more comments for making code easier to understand
    
    [IMP] l10n_it_reverse_charge: add help to tax_ids field
    
    [FIX] l10n_it_reverse_charge:
    * do not copy rc_self_invoice_id
    * check if inv has rc_self_invoice_id before to proceed with its cancellation
    
    [FIX] l10n_it_reverse_charge: avoid product from self invoice lines to better handle related stats
    
    [ADD] 8.0-l10n_it_reverse_charge: copy self_invoice_text to self invoice name
    tafaRU authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    66e131f View commit details
    Browse the repository at this point in the history
  3. FIX l10n_it_reverse_charge

    [W7910(wrong-tabs-instead-of-spaces), ]  Use wrong tabs indentation instead of four spaces
    
    FIX screenshots
    
    FIX allow to use and compute RC field in invoice line form pop up
    
    l10n_it_reverse_charge ADD "With additional supplier self invoice"
    to enable the creation of an additional supplier self
    invoice. This is tipically used for extraUE suppliers,
    in order to show, in supplier register, an invoice to the
    specified partner (tipically, my company), instead of the
    extraUE partner
    
    Also FIX
    ValueError: "local variable 'tax_code_id' referenced before assignment" while evaluating
    u'invoice_validate()'
    when tax mapping not found
    eLBati authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    9ad9b4f View commit details
    Browse the repository at this point in the history
  4. [IMP] improve the README

    MarcoCalcagni authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    65ed9e4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bbffac5 View commit details
    Browse the repository at this point in the history
  6. IMP porting to 10.0 l10n_it_reverse_charge

    FIX invoice_line_tax_ids field
    eLBati authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    8c02e7e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    96a7916 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    10834d3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6771975 View commit details
    Browse the repository at this point in the history
  10. [FIX] l10n_it_reverse_charge: replace action_cancel_draft by action_i…

    …nvoice_draft due to odoo/odoo@bc8d5db (OCA#433)
    
    In this way both invoices are again set as draft.
    tafaRU authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    db4e837 View commit details
    Browse the repository at this point in the history
  11. [ADD] tests

    SimoRubi authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    edf86eb View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    5b8aeaa View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    20d311b View commit details
    Browse the repository at this point in the history
  14. [FIX][l10n_it_reverse_charge] Substitute all the taxes in invoice lin…

    …e with the mapping
    SimoRubi authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    825e62a View commit details
    Browse the repository at this point in the history
  15. Translated using Weblate (Italian)

    Currently translated at 100.0% (55 of 55 strings)
    
    Translation: l10n-italy-10.0/l10n-italy-10.0-l10n_it_reverse_charge
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-10-0/l10n-italy-10-0-l10n_it_reverse_charge/it/
    primes2h authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    81019fd View commit details
    Browse the repository at this point in the history
  16. [FIX] l10n_it_reverse_charge: Assign RC flag when invoice line is cre…

    …ated from PO
    
    [FIX] l10n_it_reverse_charge: Assign RC flag only to supplier invoices
    
    [FIX] l10n_it_reverse_charge: Assign RC flag when vendor bill is created from PO
    Fixes the following usecase:
    
    0. Install Purchase
    1. Set Reverse Charge type for a new fiscal position _fp_rc_
    2. Assign _fp_rc_ to a new partner _partner_rc_
    3. Create a new PO with one line for _partner_rc_, confirm, receive the products
    4. From the button in the created PO, create a new vendor bill
    
    Before this commit:
    RC flag is not set in the line of the created invoice
    
    After this commit:
    RC flag is set in the line of the created invoice
    
    [FIX] l10n_it_reverse_charge: Assign RC flag when vendor bill is populated with partner_id and then purchase_id
    SimoRubi authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    d4d7769 View commit details
    Browse the repository at this point in the history
  17. l10n_it_reverse_charge: avoid creating autoinvoice with payment term

    Otherwise in case payment term such as 15/30 days the autoinvoice won't be payed at all.
    tafaRU authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    6422153 View commit details
    Browse the repository at this point in the history
  18. l10n_it_reverse_charge: fix compute_rc_amount_tax to avoid difference…

    … between amount_tax and amount shown on payments_widget
    tafaRU authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    a0f00ea View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    24ebcd6 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    c311851 View commit details
    Browse the repository at this point in the history
  21. Compute tax amount considering correct rate date.

    Also fix extra UE case
    
    FIX l10n_it_reverse_charge: setting discount in supplier invoice would produce a wrong self invoice
    
    REF reconcile_rc_invoice to increase performance.
    Writing company_id would produce recomputation of every account.move.line linked to accounts involved in journal entry to be created.
    In case of thousands or milions of move lines, this would last hours
    eLBati authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    48d4e26 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    15f49d0 View commit details
    Browse the repository at this point in the history
  23. FIX l10n_it_reverse_charge README

    eLBati authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    95b994a View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    6f8bc11 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    86d39a9 View commit details
    Browse the repository at this point in the history
  26. Translated using Weblate (Italian)

    Currently translated at 100.0% (57 of 57 strings)
    
    Translation: l10n-italy-12.0/l10n-italy-12.0-l10n_it_reverse_charge
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_reverse_charge/it/
    eLBati authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    31d5259 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    df89bba View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    4d9ea1a View commit details
    Browse the repository at this point in the history
  29. Translated using Weblate (Italian)

    Currently translated at 100.0% (58 of 58 strings)
    
    Translation: l10n-italy-12.0/l10n-italy-12.0-l10n_it_reverse_charge
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_reverse_charge/it/
    primes2h authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    8abdd23 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    4aeec7a View commit details
    Browse the repository at this point in the history
  31. merge PR 1264 1717 1728 1737 1739

    Lara Baggio authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    d131f15 View commit details
    Browse the repository at this point in the history
  32. FIX license LGPL-3 conflicts

    eLBati authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    5f37bc0 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    8388221 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    c7b9ee9 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    814b6e7 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    495f289 View commit details
    Browse the repository at this point in the history
  37. [14.0][FIX] l10n_it_reverse_charge: undo reverse moves when supplier …

    …invoice is reset to draft
    SimoneVagile authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    a40315c View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    9a3fac6 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    cc6783f View commit details
    Browse the repository at this point in the history
  40. [FIX] l10n_it_reverse_charge: disable one test (for now)

    OCA/OCB@674eaa3
    apparently broke odoo.addons.account.tests.common.AccountTestInvoicingCommon
    method init_invoice() when called with two opposed values as amounts
    (throws odoo.exceptions.UserError: Cannot create unbalanced journal
    entry)
    
    One test (test_intra_EU_zero_total) disabled. If/when init_invoice() is
    fixed, it will trigger a failure, or the test will be rewritten to adapt
    to the new behaviour, whichever comes first.
    TheMule71 authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    0f2e721 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    98ff040 View commit details
    Browse the repository at this point in the history
  42. Revert "[FIX] l10n_it_reverse_charge: disable one test (for now)"

    This reverts commit 0e2ade3.
    fredzamoabg authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    b676f1f View commit details
    Browse the repository at this point in the history
  43. Translated using Weblate (Italian)

    Currently translated at 100.0% (58 of 58 strings)
    
    Translation: l10n-italy-14.0/l10n-italy-14.0-l10n_it_reverse_charge
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-l10n_it_reverse_charge/it/
    francesco-ooops authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    25a99b5 View commit details
    Browse the repository at this point in the history
  44. [FIX] l10n_it_reverse_charge: wrong string from tuple when move_vals[…

    …inv] contains only one ID
    fredzamoabg authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    28ccf46 View commit details
    Browse the repository at this point in the history
  45. [14.0][FIX] l10n_it_reverse_charge: porting mistake

    'name' is now what 'number' used to be. We should use 'ref'
    TheMule71 authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    ceca2d5 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    e8dd0f8 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    9fee071 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    001e330 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    74bba79 View commit details
    Browse the repository at this point in the history
  50. [14.0][FIX] tests

    sergiocorato authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    a34d8a2 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    7316f28 View commit details
    Browse the repository at this point in the history
  52. Translated using Weblate (Slovenian)

    Currently translated at 79.6% (47 of 59 strings)
    
    Translation: l10n-italy-14.0/l10n-italy-14.0-l10n_it_reverse_charge
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-l10n_it_reverse_charge/sl/
    sysadminmatmoz authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    68d0725 View commit details
    Browse the repository at this point in the history
  53. Translated using Weblate (Italian)

    Currently translated at 100.0% (59 of 59 strings)
    
    Translation: l10n-italy-14.0/l10n-italy-14.0-l10n_it_reverse_charge
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-l10n_it_reverse_charge/it/
    mymage authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    6c975a7 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    ba5eec5 View commit details
    Browse the repository at this point in the history
  55. Translated using Weblate (Italian)

    Currently translated at 100.0% (59 of 59 strings)
    
    Translation: l10n-italy-14.0/l10n-italy-14.0-l10n_it_reverse_charge
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-l10n_it_reverse_charge/it/
    primes2h authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    e953c86 View commit details
    Browse the repository at this point in the history
  56. Complete porting bc2dba2 to 14.0: IMP l10n_it_reverse_charge supporti…

    …ng "with_supplier_self_invoice" for e-invoices
    eLBati authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    b2468d7 View commit details
    Browse the repository at this point in the history
  57. Translated using Weblate (Italian)

    Currently translated at 100.0% (62 of 62 strings)
    
    Translation: l10n-italy-14.0/l10n-italy-14.0-l10n_it_reverse_charge
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-l10n_it_reverse_charge/it/
    mymage authored and SirTakobi committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    a7fca19 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    918a5c0 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2023

  1. [MIG] l10n_it_reverse_charge: Migration to 16.0

    No need to add fields in tree of `line_ids` to have them in `invoice_line_ids` since odoo/odoo@d8d47f9
    invoice_payments_widget is a dictionary from odoo/odoo@d8d47f9
    account.payment.term.line.sequence removed from odoo/odoo@3dad4b3
    account.account.user_type_id removed from odoo/odoo@26b2472
    Always assign computed field account.move.line.rc
    account.move.line.exclude_from_invoice_tab does not exist
    Validate created journals
    Allow to reset to draft and reconfirm invoices with rc_self_purchase_invoice_id
    Do not reconcile already reconciled journal entries
    SirTakobi committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    7860711 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2023

  1. FIX invoice line creation:

     - missing RC flag on new lines where taxes are not changed
     - check is_invoice_line for not yet created lines
    eLBati authored and SirAionTech committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    cee984b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8912503 View commit details
    Browse the repository at this point in the history