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

[17.0][MIG] account_invoice_inter_company #595

Merged

Commits on Aug 2, 2024

  1. [10.0] [MIG] account_invoice_inter_company (OCA#71)

    * [10.0]Migrate account_invoice_inter_company module to v10
    
    * refactor code for play onchange method
    
    * active demo datas and fix account_invoice.py, res_config.py, README.rst file
    
    * extract the search domain of users from the _check_intercompany_product method
    
    * fix test
    
    * fix test and update french translation
    
    * rename openerp to odoo
    
    * fix test_flake8 and fix views after David's comment
    
    * add oca_dependencies.txt
    
    * fix bare except
    
    * improve action_cancel method
    
    * fix chart_template_id in tests
    
    * fix transfer_account_id in tests
    
    * fix chart_template_id for company B in tests
    
    * improve tests
    
    * fix tests taking into account the base_multi_company module
    
    * fix tests and contributors after lasley's comment
    
    * improve tests
    
    * fix account_invoice.py after mourad's comment
    
    * fix tests after lasley's comment
    
    * fix transfer account template in demo data
    
    * increases test coverage
    
    * improve action_invoice_open method after astirpe's comment
    
    * fix value for chart_template_id in tests
    chafique-delli authored and cuongnmtm committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    7b51693 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2024

  1. Configuration menu
    Copy the full SHA
    72647e5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f73a9b6 View commit details
    Browse the repository at this point in the history
  3. [FIX] account_invoice_inter_company: Move demo data to test

    This demo data is quite dangerous by design, since it creates compenies, accounts, decides the companies country, etc. All of that by hand.
    
    In a tested integration environment, this fails when installing account-related addons due to companies not having a chart of accounts.
    
    The fix is simple: remove this from demo data and leave it just as test data.
    yajo authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    fe3cdea View commit details
    Browse the repository at this point in the history
  4. [11.0][IMP] account_invoice_inter_company: option to avoid product_id…

    … in invoice lines (OCA#111)
    
    * Add product mapping in roadmap
    * Allow creation of invoice lines without products
    astirpe authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    8b73886 View commit details
    Browse the repository at this point in the history
  5. PORT 12.0 account_invoice_inter_company

    bealdav authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    1dd846d View commit details
    Browse the repository at this point in the history
  6. FIX doc and dependencies

    bealdav authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    e1806fb View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4e21bb1 View commit details
    Browse the repository at this point in the history
  8. IMP invoice_inter_cpny: settings layout

    bealdav authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    a70c404 View commit details
    Browse the repository at this point in the history
  9. FIX doc according remarks

    bealdav authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    d638749 View commit details
    Browse the repository at this point in the history
  10. Update account_invoice_inter_company/models/account_invoice.py

    Co-Authored-By: mourad-ehm <mourad.elhadj.mimoune@akretion.com>
    2 people authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    2c6d048 View commit details
    Browse the repository at this point in the history
  11. [FIX] account_invoice_inter_company: Compatibility with password_secu…

    …rity
    
    `password_security` asks by default for some minimal rules in the password. If it happens to be installed before this module, in an integration environment, it cannot be loaded.
    
    It's just demo data, so I just use a longer password here.
    yajo authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    461d528 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b23f0ff View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    ec24835 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    dcde617 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    3966a38 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    1d11bd5 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    9dad6b0 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    297407b View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    3797101 View commit details
    Browse the repository at this point in the history
  20. add extra config settings:

    * intercompany_invoice_user_id
    * company_share_product (restored from previous versions)
    JordiBForgeFlow authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    32e752c View commit details
    Browse the repository at this point in the history
  21. [IMP] res_config_settings view

    AdriaGForgeFlow authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    fb1e4f3 View commit details
    Browse the repository at this point in the history
  22. Translated using Weblate (Chinese (Simplified))

    Currently translated at 89.3% (25 of 28 strings)
    
    Translation: multi-company-13.0/multi-company-13.0-account_invoice_inter_company
    Translate-URL: https://translation.odoo-community.org/projects/multi-company-13-0/multi-company-13-0-account_invoice_inter_company/zh_CN/
    dong-z authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    260c396 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    43bd068 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    bd87cfe View commit details
    Browse the repository at this point in the history
  25. [IMP] account_invoice_inter_company: Move analytic info between invoices

    If suitable (being non company specific data), analytic information (account and
    tags) is moved from source to destination invoice.
    pedrobaeza authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    cf24f00 View commit details
    Browse the repository at this point in the history
  26. [FIX] account_invoice_inter_company: Handle invoices in multi-line

    Do creation in batch for increasing performance and avoid code to fail in case of
    existing invoice line.
    pedrobaeza authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    1a34efe View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    4c36146 View commit details
    Browse the repository at this point in the history
  28. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: multi-company-13.0/multi-company-13.0-account_invoice_inter_company
    Translate-URL: https://translation.odoo-community.org/projects/multi-company-13-0/multi-company-13-0-account_invoice_inter_company/
    oca-transbot authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    a7b1075 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    1578db2 View commit details
    Browse the repository at this point in the history
  30. [FIX]account_invoice_inter_company

    * set the company to False in a product, because the default method is spoiling the
    creation
    AaronHForgeFlow authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    b6c06c6 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    d8dff4b View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    945f83d View commit details
    Browse the repository at this point in the history
  33. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: multi-company-13.0/multi-company-13.0-account_invoice_inter_company
    Translate-URL: https://translation.odoo-community.org/projects/multi-company-13-0/multi-company-13-0-account_invoice_inter_company/
    oca-transbot authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    20bf57d View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    48718d9 View commit details
    Browse the repository at this point in the history
  35. [IMP]account_invoice_inter_company

    * move demo data to SetupClass
    AaronHForgeFlow authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    b368fd6 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    deafe19 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    fd5a808 View commit details
    Browse the repository at this point in the history
  38. [FIX] account_invoice_intercompany: display lines

    Drop display_lines (notes, sections) as they won't be used in vendor
    bills.
    chienandalu authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    dfeb51d View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    f11fa69 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    cb13f7d View commit details
    Browse the repository at this point in the history
  41. [IMP] account_invoice_inter_company: black, isort, prettier

    Pierrick Brun authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    9fb77c1 View commit details
    Browse the repository at this point in the history
  42. [MIG] account_invoice_inter_company: Migration to 14.0

    Pierrick Brun authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    0b9120a View commit details
    Browse the repository at this point in the history
  43. [FIX] migrate to 14.0

    Pierrick Brun authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    944be61 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    369a7d0 View commit details
    Browse the repository at this point in the history
  45. [FIX] account_invoice_inter_company: draft button

    Now we can set an invoice to draft to perform modifications. We want to
    avoid it though when the destination move is already posted as we could
    end with substantial differences between them.
    
    We want to avoid modifiying the generated invoice if the total amount
    differs.
    
    TT30191
    chienandalu authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    d41c4a3 View commit details
    Browse the repository at this point in the history
  46. [FIX] account_invoice_intercompany: filter moves with type entry

    As invoices are merged into the account_move table, we have to filter
    those which aren't invoices (entries and receipts)
    
    TT30338
    chienandalu authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    e5df384 View commit details
    Browse the repository at this point in the history
  47. [FIX+IMP] account_invoice_inter_company: Remove VAT + useless records

    Since odoo/odoo#68253, we can't put invalid
    VAT numbers anymore, but they are not needed for the purpose of the
    module, so we remove the field assignation.
    
    Visiting this, the fiscal positions have been detected as not used, so
    we remove them for cleaning a bit the module test.
    pedrobaeza authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    7220ab2 View commit details
    Browse the repository at this point in the history
  48. Translated using Weblate (Spanish (Argentina))

    Currently translated at 100.0% (32 of 32 strings)
    
    Translation: multi-company-14.0/multi-company-14.0-account_invoice_inter_company
    Translate-URL: https://translation.odoo-community.org/projects/multi-company-14-0/multi-company-14-0-account_invoice_inter_company/es_AR/
    ibuioli authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    76e191a View commit details
    Browse the repository at this point in the history
  49. Translated using Weblate (Croatian)

    Currently translated at 68.7% (22 of 32 strings)
    
    Translation: multi-company-14.0/multi-company-14.0-account_invoice_inter_company
    Translate-URL: https://translation.odoo-community.org/projects/multi-company-14-0/multi-company-14-0-account_invoice_inter_company/hr/
    MatijaKrolo authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    b600ae6 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    a0ed8a8 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    5c2b123 View commit details
    Browse the repository at this point in the history
  52. [FIX] account_invoice_inter_company: Delete default_journal_id key if…

    … present in context
    omar7r authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    faa68b4 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    41364ef View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    8d42b09 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    4bc49ac View commit details
    Browse the repository at this point in the history
  56. [IMP] compare only on untaxed amount, companies can apply differents …

    …tax rates on sales and purchase invoices
    ChrisOForgeFlow authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    b89f430 View commit details
    Browse the repository at this point in the history
  57. Add compatibility between account_invoice_inter_company and modules s…

    …ale and account_invoice_start_end_dates
    florian-dacosta authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    95cc7e7 View commit details
    Browse the repository at this point in the history
  58. [IMP] account_invoice_inter_company: Speed improvement

    This commit reuses the same form for the same invoice,
    thus eliminating the creation overhead. It also does the
    same with the invoice lines, generating one and changing
    its values each time. This change increases the speed
    drastically when validating them.
    igallart authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    5ff9860 View commit details
    Browse the repository at this point in the history
  59. account_invoice_inter_company: fix check product

    We need to check the access right of the product not the line
    sebastienbeau authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    7ed8b2d View commit details
    Browse the repository at this point in the history
  60. [FIX] account_invoice_inter_company : run test at post install

    This avoids getting a "No Chart of Account Template has been defined !" error on fresh database install
    metaminux authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    85aacd4 View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    7fbd27a View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    ef678e5 View commit details
    Browse the repository at this point in the history
  63. Translated using Weblate (Spanish)

    Currently translated at 100.0% (30 of 30 strings)
    
    Translation: multi-company-16.0/multi-company-16.0-account_invoice_inter_company
    Translate-URL: https://translation.odoo-community.org/projects/multi-company-16-0/multi-company-16-0-account_invoice_inter_company/es/
    Ivorra78 authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    d77a07c View commit details
    Browse the repository at this point in the history
  64. [UPD] README.rst

    OCA-git-bot authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    38f9a8a View commit details
    Browse the repository at this point in the history
  65. Translated using Weblate (Spanish (Argentina))

    Currently translated at 100.0% (30 of 30 strings)
    
    Translation: multi-company-16.0/multi-company-16.0-account_invoice_inter_company
    Translate-URL: https://translation.odoo-community.org/projects/multi-company-16-0/multi-company-16-0-account_invoice_inter_company/es_AR/
    ibuioli authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    01f36ac View commit details
    Browse the repository at this point in the history
  66. [FIX] account_invoice_inter_company: Remove self company

    from eligible companies in `_find_company_from_invoice_partner`
    renda-dev authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    f1fd614 View commit details
    Browse the repository at this point in the history
  67. Translated using Weblate (Italian)

    Currently translated at 36.6% (11 of 30 strings)
    
    Translation: multi-company-16.0/multi-company-16.0-account_invoice_inter_company
    Translate-URL: https://translation.odoo-community.org/projects/multi-company-16-0/multi-company-16-0-account_invoice_inter_company/it/
    mymage authored and cuongnmtm committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    926eaa0 View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    86f301f View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. Configuration menu
    Copy the full SHA
    de949d1 View commit details
    Browse the repository at this point in the history