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] sale_order_import: Migration to 16.0 #816

Merged
merged 81 commits into from
Oct 19, 2023

Commits on Sep 19, 2023

  1. Initial check-in of module sale_order_import, sale_stock_order_import…

    …, sale_order_import_ubl, sale_order_import_csv, sale_order_ubl, sale_commercial_partner
    alexis-via authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    088722f View commit details
    Browse the repository at this point in the history
  2. Add 2 README.rst

    Add another README.
    alexis-via authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    8056b87 View commit details
    Browse the repository at this point in the history
  3. FIX Don't use _inherit = ['business.document.import']

    because we want to have access to the code of the modules that inherit business.document.import
    alexis-via authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    aa41be4 View commit details
    Browse the repository at this point in the history
  4. [IMP] handle the case where the xml file is generated with mime type

    'text/xml'
    adrienpeiffer authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    8efb09b View commit details
    Browse the repository at this point in the history
  5. Add support for extraction + matching on website

    PEP8 fix
    alexis-via authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    8dc3a56 View commit details
    Browse the repository at this point in the history
  6. 8.0 Add support for partner bank matching on invoice update (#6)

    Add support for partner bank matching on invoice update (before, it was only supported on invoice creation)
    Alexis de Lattre authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    8e71618 View commit details
    Browse the repository at this point in the history
  7. OCA Transbot updated translations from Transifex

    oca-transbot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    ffc0a67 View commit details
    Browse the repository at this point in the history
  8. Prepare v10 branch

    Rename __openerp__.py to __manifest__.py and set installable to False
    alexis-via authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    ad0c365 View commit details
    Browse the repository at this point in the history
  9. Continue port of modules for v10.0, in particular sale_order_import_*…

    … module
    
    Fix spelling mistake and other remarks on README by Tarteo
    alexis-via authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    6ac00a4 View commit details
    Browse the repository at this point in the history
  10. Port account_invoice_import_factur-x and account_invoice_import_ubl t…

    …o v10.0
    
    base_business_document_import: Add support for the creation of res.bank
    alexis-via authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    38b4234 View commit details
    Browse the repository at this point in the history
  11. Port purchase_order_import* to v10.0

    Add ubl invoice generation option in accounting config page
    alexis-via authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    89ea6bf View commit details
    Browse the repository at this point in the history
  12. FIX crash when pivot format had a 'note' key (and no attachment)

    Add method to create SO in sale.order.import accessible via JSON-RPC
    alexis-via authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    00a0c47 View commit details
    Browse the repository at this point in the history
  13. OCA Transbot updated translations from Transifex

    oca-transbot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    1644edc View commit details
    Browse the repository at this point in the history
  14. [11.0][MIG] sale_order_import: Migration + add tests

    Add readme fragments
    tarteo authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    e6e4d55 View commit details
    Browse the repository at this point in the history
  15. Fix import of sale order with price_source='pricelist' when pricelist…

    … has visible discounts
    
    Code improvements in sale_order_import
    Add unit tests in sale_order_import
    Use display_name instead of name_get()[0][1]
    
    Fix travis
    alexis-via authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    9a4bb6f View commit details
    Browse the repository at this point in the history
  16. Check the VAT number of the destination partner, to make sure the bus…

    …iness document is imported in the right company
    alexis-via authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    dda25f8 View commit details
    Browse the repository at this point in the history
  17. [UPD] Update sale_order_import.pot

    oca-travis authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    103ed10 View commit details
    Browse the repository at this point in the history
  18. [ADD] icon.png

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    cf5466d View commit details
    Browse the repository at this point in the history
  19. [12.0][MIG] sale_order_import

    astirpe authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    9eb19a8 View commit details
    Browse the repository at this point in the history
  20. [IMP] sale_order_import: black, isort, prettier

    sebalix authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    6794a14 View commit details
    Browse the repository at this point in the history
  21. [MIG] sale_order_import: Migration to 13.0

    sebalix authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    84b3085 View commit details
    Browse the repository at this point in the history
  22. [UPD] README.rst

    sebalix authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    2a9d31d View commit details
    Browse the repository at this point in the history
  23. [UPD] Update sale_order_import.pot

    oca-travis authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    8f86ec9 View commit details
    Browse the repository at this point in the history
  24. [UPD] README.rst

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    ad420de View commit details
    Browse the repository at this point in the history
  25. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: edi-13.0/edi-13.0-sale_order_import
    Translate-URL: https://translation.odoo-community.org/projects/edi-13-0/edi-13-0-sale_order_import/
    oca-transbot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    967a653 View commit details
    Browse the repository at this point in the history
  26. Parse and import Sales Order Invoicing Partner. Refactor shipping par…

    …tner matching.
    
    A shipping partner is not especially related to the ordering party. It
    could be any partner. However, we want to ensure that the address is
    respected.
    
    Fix-up: PartyIdentification/ID is a 1..N relation. Parse each of them for a match
    jbaudoux authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    fe2887b View commit details
    Browse the repository at this point in the history
  27. sale_order_import: Match existing quotation respecting the PO number

    Do not suggest to update an open quotation that does not have the
    corresponding client ref. UBL endpoint was blocked as soon as a
    quotation for the same customer was existing.
    jbaudoux authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    f39acd9 View commit details
    Browse the repository at this point in the history
  28. sale_order_import: prevent to create 2 SO with the same ref and comme…

    …rcial entity
    jbaudoux authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    bf1a8f5 View commit details
    Browse the repository at this point in the history
  29. sale_order_import 13.0.2.0.0

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    3333145 View commit details
    Browse the repository at this point in the history
  30. [IMP] sale_order_import: black, isort, prettier

    phuctranfxvn authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    c3bfc63 View commit details
    Browse the repository at this point in the history
  31. [MIG] sale_order_import: Migration to 14.0

    phuctranfxvn authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    a62caac View commit details
    Browse the repository at this point in the history
  32. [UPD] Update sale_order_import.pot

    oca-travis authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    09b1eb4 View commit details
    Browse the repository at this point in the history
  33. [UPD] README.rst

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    0fddae0 View commit details
    Browse the repository at this point in the history
  34. [FW][14.0][IMP] Add sale order ubl parse latest delivery

    Parse the latest delivery date and time from the delivery node of an UBL
    sales order.
    And assign the value to the `commitment_date` of the sales order.
    TDu authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    121f223 View commit details
    Browse the repository at this point in the history
  35. sale_order_import 14.0.1.1.0

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    a410ee9 View commit details
    Browse the repository at this point in the history
  36. sale_order_import: split xml parsing and ease error handling

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    4e95ef3 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    c91aaed View commit details
    Browse the repository at this point in the history
  38. sale_order_import: fix action lookup

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    76e57cf View commit details
    Browse the repository at this point in the history
  39. [UPD] Update sale_order_import.pot

    oca-travis authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    d3df3b9 View commit details
    Browse the repository at this point in the history
  40. sale_order_import 14.0.1.1.1

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    cbd400a View commit details
    Browse the repository at this point in the history
  41. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: edi-14.0/edi-14.0-sale_order_import
    Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-sale_order_import/
    oca-transbot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    e91a8e6 View commit details
    Browse the repository at this point in the history
  42. [ADD][13.0]sale_order_import no mail subscribe

    Disable the subscription (mail chatter) to the new sales order
    for the user used by the endpoint.
    To me it does make sense because good practice would be to have a
    specific user for the endpoint.
    TDu authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    a922088 View commit details
    Browse the repository at this point in the history
  43. [13.0][IMP] sale_order_import add hook search existing

    When importing an order the module checks if a similar order already
    exists in the system. The search domain used for this is not
    customizable.
    This change extract the domain computation for the search in its own
    function.
    TDu authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    ca80fee View commit details
    Browse the repository at this point in the history
  44. sale_order_import 14.0.1.2.0

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    c3a6f6a View commit details
    Browse the repository at this point in the history
  45. sale_order_import: fix deprecation warning

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    f6652b9 View commit details
    Browse the repository at this point in the history
  46. sale_order_import: fix XMLSyntaxError handling

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    1855dbe View commit details
    Browse the repository at this point in the history
  47. sale_order_import 14.0.1.2.1

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    365ad88 View commit details
    Browse the repository at this point in the history
  48. sale_order_import: _parse_xml handle NotImplementedError

    When no handler is defined for the given document
    NotImplementedError could be raised.
    
    Handle this case properly when parsing.
    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    510c199 View commit details
    Browse the repository at this point in the history
  49. sale_order_import 14.0.1.2.2

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    e3923cc View commit details
    Browse the repository at this point in the history
  50. sale_order_import: fix missing company default

    SO and SOL creation should be done w/ all defaults loaded.
    In particular, the company is not propagated directly to the SOL
    when we play onchanges.
    
    Hence, at least in our tests, it can happen
    that the company is not set yet on the line
    and the computation of the price via 'product._get_tax_included_unit_price'
    is broken when calling 'res.currency._convert' w/ an empty company.
    
    Error example::
    
        [...]/base/models/res_currency.py", line 192, in _convert
        assert company, "convert amount from unknown company"
        AssertionError: convert amount from unknown company
    
    ATM I'm adding only the company since it turns out that
    if we load all defaults w/ `order.default_get` it breaks price
    computation.
    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    61fb524 View commit details
    Browse the repository at this point in the history
  51. sale_order_import 14.0.1.2.3

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    affcb51 View commit details
    Browse the repository at this point in the history
  52. sale_order_import: add line update values hook

    TDu authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    092e756 View commit details
    Browse the repository at this point in the history
  53. sale_order_import 14.0.1.3.0

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    e04beec View commit details
    Browse the repository at this point in the history
  54. sale_order_import: reduce _prepare_order complexity

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    60f7d18 View commit details
    Browse the repository at this point in the history
  55. sale_order_import: refactor tests setup

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    5487aa0 View commit details
    Browse the repository at this point in the history
  56. sale_order_import: test onchange validation

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    5e694c0 View commit details
    Browse the repository at this point in the history
  57. sale_order_import: order_file_change improve readability

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    e8e3d17 View commit details
    Browse the repository at this point in the history
  58. sale_order_import: get_xml_files_from_pdf does not exists

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    bcf7fbe View commit details
    Browse the repository at this point in the history
  59. sale_order_import: test _parse_xml

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    b818754 View commit details
    Browse the repository at this point in the history
  60. sale_order_import: update autorship

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    2e513c9 View commit details
    Browse the repository at this point in the history
  61. sale_order_import: use pdf_helper

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    53fbf3a View commit details
    Browse the repository at this point in the history
  62. sale_order_import: add tests TODOs

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    6043b41 View commit details
    Browse the repository at this point in the history
  63. sale_order_import: test parse_pdf_order

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    5e05210 View commit details
    Browse the repository at this point in the history
  64. sale_order_import: re-organize test files

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    cdc4ba1 View commit details
    Browse the repository at this point in the history
  65. sale_order_import: refactor parse_order, de-dup code

    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    a7f15dd View commit details
    Browse the repository at this point in the history
  66. [UPD] Update sale_order_import.pot

    oca-ci authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    affc483 View commit details
    Browse the repository at this point in the history
  67. [UPD] README.rst

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    df37d6f View commit details
    Browse the repository at this point in the history
  68. sale_order_import 14.0.1.4.0

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    9e815d0 View commit details
    Browse the repository at this point in the history
  69. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: edi-14.0/edi-14.0-sale_order_import
    Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-sale_order_import/
    oca-transbot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    dc4d5d6 View commit details
    Browse the repository at this point in the history
  70. sale_order_import: fix invoicing partner

    TDu authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    6770d1a View commit details
    Browse the repository at this point in the history
  71. sale_order_import 14.0.1.4.1

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    cd86b35 View commit details
    Browse the repository at this point in the history
  72. sale_order_import: propagate all available fields

    Handle additional fields dynamically if available.
    This way, if you add a field to a record and it's value is injected by a parser
    you won't have to override  to let it propagate.
    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    48f81a4 View commit details
    Browse the repository at this point in the history
  73. sale_order_import 14.0.1.4.2

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    76495c3 View commit details
    Browse the repository at this point in the history
  74. sale_order_import: accept default order data via ctx

    You can now pass 'sale_order_import__default_vals' key in the ctx
    to pass order values down the stack.
    simahawk authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    9bd7b07 View commit details
    Browse the repository at this point in the history
  75. sale_order_import 14.0.1.5.0

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    383d79a View commit details
    Browse the repository at this point in the history
  76. [UPD] README.rst

    OCA-git-bot authored and duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    ff0cbf6 View commit details
    Browse the repository at this point in the history
  77. [IMP] sale_order_import: pre-commit stuff

    duongtq committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    418d7df View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2023

  1. [MIG] sale_order_import: Migration to 16.0

    duongtq committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    0cf0d17 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c521b5 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2023

  1. [IMP] sale_order_import: Refactor code

    - Add new selection import_type field for choosing the type to import
    - Refactor _parse_file with import_type field
    - Drop some not used method
    duongtq committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    9e50719 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    470e4fb View commit details
    Browse the repository at this point in the history