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

[MIG] l10n_it_account_stamp: Migrazione a 18.0 #4402

Open
wants to merge 41 commits into
base: 18.0
Choose a base branch
from

Commits on Oct 18, 2024

  1. [8.0] add account stamp management

    [FIX] clean
    
    [FIX] clean
    
    [FIX] pep8
    
    [IMP] use tax obj instead of tax code
    
    [FIX] icon path
    
    [FIX] get product with lang context
    
    [FIX] translation
    
    [FIX] product name
    
    [FIX] compute after unlink of invoice line
    sergiocorato authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    c066529 View commit details
    Browse the repository at this point in the history
  2. porting l10n_it_account_stamp to 10

    eLBati authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    c826c2c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8284d70 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5c7a7ab View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f5a0b70 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    238008f View commit details
    Browse the repository at this point in the history
  7. FIX l10n_it_account_stamp: recompute taxes when adding stamp to lines (

    …OCA#818)
    
    This is needed as stamp line should be under VAT exemption
    eLBati authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    af1a501 View commit details
    Browse the repository at this point in the history
  8. Translated using Weblate (Italian)

    Currently translated at 100.0% (29 of 29 strings)
    
    Translation: l10n-italy-12.0/l10n-italy-12.0-l10n_it_account_stamp
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_account_stamp/it/
    primes2h authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    da9fad5 View commit details
    Browse the repository at this point in the history
  9. [FIX] move stamp checkbox to avoid misleading

    [FIX] extra blank line
    [FIX] typos in source strings
    [IMP] readme, adapt to v.12.0 and add italian section
    [IMP] __manifest__.py, set ITA name and summary
    primes2h authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    729a9a6 View commit details
    Browse the repository at this point in the history
  10. Translated using Weblate (Italian)

    Currently translated at 100.0% (29 of 29 strings)
    
    Translation: l10n-italy-12.0/l10n-italy-12.0-l10n_it_account_stamp
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_account_stamp/it/
    primes2h authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    3619ed3 View commit details
    Browse the repository at this point in the history
  11. Translated using Weblate (Italian)

    Currently translated at 100.0% (29 of 29 strings)
    
    Translation: l10n-italy-12.0/l10n-italy-12.0-l10n_it_account_stamp
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_account_stamp/it/
    primes2h authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    3d8f6af View commit details
    Browse the repository at this point in the history
  12. [IMP] l10n_account_stamp add manual mode

    [FIX] 2 euro image file
    [IMP] image on invoice to display stamp application
          and revert checkbox to previous position
    [FIX] show button in draft edit mode only
    primes2h authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    2fd59ca View commit details
    Browse the repository at this point in the history
  13. [FIX] decree month in source string

    primes2h authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    321bf90 View commit details
    Browse the repository at this point in the history
  14. Translated using Weblate (Italian)

    Currently translated at 100.0% (30 of 30 strings)
    
    Translation: l10n-italy-12.0/l10n-italy-12.0-l10n_it_account_stamp
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_account_stamp/it/
    primes2h authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    2f76207 View commit details
    Browse the repository at this point in the history
  15. Translated using Weblate (Italian)

    Currently translated at 100.0% (30 of 30 strings)
    
    Translation: l10n-italy-12.0/l10n-italy-12.0-l10n_it_account_stamp
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_account_stamp/it/
    primes2h authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    4da328c View commit details
    Browse the repository at this point in the history
  16. Translated using Weblate (Italian)

    Currently translated at 100.0% (30 of 30 strings)
    
    Translation: l10n-italy-12.0/l10n-italy-12.0-l10n_it_account_stamp
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_account_stamp/it/
    primes2h authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    317ed73 View commit details
    Browse the repository at this point in the history
  17. Fix l10n_it_account_stamp: tax_stamp computation.

    Test case:
    
     - Create a product setting VAT "fuori campo" (price 1)
     - Configure "Tax Stamp 2 euro" product to apply to "fuori campo"
     - Create an invoice, add a line selecting the previously created product and setting unit price = 100
    
    tax_stamp field stays false
    eLBati authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    f1b8ec9 View commit details
    Browse the repository at this point in the history
  18. merge PR 1264 1717 1728 1737 1739

    Lara Baggio authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    9a13b4c View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    1598071 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    5ee105b View commit details
    Browse the repository at this point in the history
  21. Revert "[FIX] show stamp duty parameters in manual mode"

    This reverts commit 112146d.
    eLBati authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    c2cf7aa View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    1ff4a9d View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    6fa3260 View commit details
    Browse the repository at this point in the history
  24. Translated using Weblate (Italian)

    Currently translated at 100.0% (31 of 31 strings)
    
    Translation: l10n-italy-14.0/l10n-italy-14.0-l10n_it_account_stamp
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-l10n_it_account_stamp/it/
    primes2h authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    03e4f5d View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    1f5dc76 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    41dd2f6 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    0f5253b View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    a1c0b8e View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    ff002ed View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    8217bb6 View commit details
    Browse the repository at this point in the history
  31. Translated using Weblate (Italian)

    Currently translated at 100.0% (30 of 30 strings)
    
    Translation: l10n-italy-16.0/l10n-italy-16.0-l10n_it_account_stamp
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_account_stamp/it/
    mymage authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    9426535 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    96ad0fc View commit details
    Browse the repository at this point in the history
  33. [FIX][l10n_it_account_stamp] fix xpath to avoid error on update all E…

    …lement '<xpath expr=//p[@t-if='o.fiscal_position_id.note']>' cannot be located in parent view
    matteoopenf authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    e263324 View commit details
    Browse the repository at this point in the history
  34. Translated using Weblate (Italian)

    Currently translated at 100.0% (31 of 31 strings)
    
    Translation: l10n-italy-16.0/l10n-italy-16.0-l10n_it_account_stamp
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_account_stamp/it/
    mymage authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    8928f41 View commit details
    Browse the repository at this point in the history
  35. [FIX] l10n_it_account_stamp: fix tests, prevent ValueError: Expected …

    …singleton
    
    After odoo/odoo@28004b7#diff-a97352a94802dc006fe1dad7587741ccc6e8d9edf5eb70110a1087c52dde2759R97-R109
    test_amount_total_changing_currency fails with the following error:
    
    Traceback (most recent call last):
      File "/__w/l10n-italy/l10n-italy/l10n_it_account_stamp/tests/test_account_stamp_invoicing.py", line 93, in test_amount_total_changing_currency
        invoice_form = Form(invoice)
      File "/opt/odoo/odoo/tests/common.py", line 1977, in __init__
        assert recordp['id'], "editing unstored records is not supported"
      File "/opt/odoo/odoo/models.py", line 5897, in __getitem__
        return self._fields[key].__get__(self, type(self))
      File "/opt/odoo/odoo/fields.py", line 5065, in __get__
        raise ValueError("Expected singleton: %s" % record)
    ValueError: Expected singleton: account.move(230, 236)
    
    and test_keep_lines_description fails with the following error:
    
    Traceback (most recent call last):
      File "/__w/l10n-italy/l10n-italy/l10n_it_account_stamp/tests/test_account_stamp_invoicing.py", line 73, in test_keep_lines_description
        self.assertEqual(len(invoice), 1)
    AssertionError: 2 != 1
    
    and test_post_invoicing fails with the following error:
    
    Traceback (most recent call last):
      File "/__w/l10n-italy/l10n-italy/l10n_it_account_stamp/tests/test_account_stamp_invoicing.py", line 55, in test_post_invoicing
        self.assertEqual(len(invoice_ids), 1)
    AssertionError: 2 != 1
    tafaRU authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    33d737d View commit details
    Browse the repository at this point in the history
  36. FIX l10n_it_account_stamp for multi-company env

    Steps:
     - Configure 2 companies
       - Company 1 - No tax stamp applied in the settings
       - Company 2 - Tax stamp applied in the settings
     - Activate "Synchronize invoices/bills" under "Inter-Company Transactions" in "General Settings" (enterprise feature)
     - From Company 1, create an invoice to Company 2 and try to "Confirm" the invoice
    
    Get "Missing tax stamp product in company settings"
    
    Expected behavior for Company 1 (invoice):
    - Since no taxstamp exists in settings for Company 1 and "Apply tax stamp" is FALSE on the invoice itself - there should be no error "Missing tax stamp".
    Expected behavior for Company 2 (bill):
    - Since taxstamp applied in the settings, it should be correctly processed.
    eLBati authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    e4cb086 View commit details
    Browse the repository at this point in the history
  37. Updated from template

    SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    efcb87e View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    d1389bd View commit details
    Browse the repository at this point in the history
  39. [IMP] l10n_it_account_stamp: Usability for stamp in invoice.

    If stamp line can be added (invoice in draft): show button to add stamp line.
    If stamp line can't be added (invoice not in draft): show message explaining why it can't be added.
    If stamp line has already been added: show message saying it has already been added (useful if invoice has many lines).
    Button and messages update live while updating the invoice.
    Better messages to user for charging stamp to customer
    
    Co-authored-by:  Simone Rubino <simone.rubino@aion-tech.it>
    SimoRubi and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    b402893 View commit details
    Browse the repository at this point in the history
  40. Translated using Weblate (Italian)

    Currently translated at 100.0% (35 of 35 strings)
    
    Translation: l10n-italy-16.0/l10n-italy-16.0-l10n_it_account_stamp
    Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_account_stamp/it/
    mymage authored and SirAionTech committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    2515728 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2024

  1. [MIG] l10n_it_account_stamp: Migration to 18.0

    Align with Odoo standard terminology
    
    Co-authored-by: Sergio Zanchetta <primes2h@gmail.com>
    SirAionTech and primes2h committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    4bd4fc5 View commit details
    Browse the repository at this point in the history