-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
[15.0][MIG] base_business_document_import #564
[15.0][MIG] base_business_document_import #564
Conversation
Can you squash the last commits? You can do
and merge them using fixup or squash |
…voice dict, cleaner organisation) Code refactoring: move code in base_business_document_import, factorise code for tax matching (it was duplicated in UBL and ZUGFeRD) Now support PDF with embedded UBL XML file Enable unittests on account_invoice_import_ubl More absolute xpath in account_invoice_import_ubl instead of relative xpath WARNING: these are big changes, I may have broken a few details
Adapt module account_invoice_import_ubl to use the new base_ubl module Small fixes
Better generation of address block in UBL (make it coherent with the datamodel of Odoo) Add generation of several UBL blocks: language, delivery, payment terms, customer party, spplier party Add parsing of zip in UBL party (will be used in the future for delivery partner match)
Use country code and state code to match partners UBL: Add delivery terms and line item UBL XML block generation UBL: add parsing of delivery block
Add unitests in base_business_document_import Small code enhancements/simplifications
Code cleanup/minor changes
Rename key 'quantity' to 'qty' in all parsing dicts['lines'] Add common methods compare_lines() and post_create_or_update() Make sure price_unit is always untaxed in UBL XML files
Add support for partner bank matching on invoice update (before, it was only supported on invoice creation)
[FIX] LINT Use try/except when importing external libs Remove self.ensure_one() that has nothing to do in an api.model method
Rename __openerp__.py to __manifest__.py and set installable to False
Add match for accounts and journals
Improve match for journals and accounts
Also port all the modules that generate the XML documents: account_invoice_ubl, account_invoice_zugferd, purchase_order_ubl and sale_order_ubl
Note: it requires this fix on odoo 10: odoo/odoo#15649
… module Fix spelling mistake and other remarks on README by Tarteo
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: edi-14.0/edi-14.0-base_business_document_import Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-base_business_document_import/
Currently translated at 97.4% (38 of 39 strings) Translation: edi-14.0/edi-14.0-base_business_document_import Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-base_business_document_import/fr_FR/
Currently translated at 56.4% (22 of 39 strings) Translation: edi-14.0/edi-14.0-base_business_document_import Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-base_business_document_import/nl/
Currently translated at 94.8% (37 of 39 strings) Translation: edi-14.0/edi-14.0-base_business_document_import Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-base_business_document_import/nl/
Currently translated at 94.8% (37 of 39 strings) Translation: edi-14.0/edi-14.0-base_business_document_import Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-base_business_document_import/fr/
…nt when searching shipping partner
Reduce _match_partner complexity
d7bbb73
to
4b36100
Compare
Just one last thing, can you rename the last two commits with the right name, [15.0-mig-base] shouldn't be there |
4b36100
to
a34078a
Compare
@etobella should be okey now. |
Hi @pedrobaeza . In old MR you've mentioned that this module should reflect on Odoo 15 core EDI. But are you sure? This module only contains helper methods for base document import. |
My thoughts are that Odoo is able to do the same stuff without this, so I suppose they have their tooling for that, so let's reuse it. |
Thank you for your insight. Unfortunately I don't have time to do re-design anytime soon. |
I agree. We should start getting rid of such gigantic I-do-all-you-want models. While adding some more test cov I've found also that some modules are partially broken on v14 because of missing inheritance on this big model which from my POV it shouldn't be at all inherited. See #595. Very likely many other methods can be simplified or re-organized (eg: smaller models by topic) or moved out. A good starting point would be to add more test coverage so that we'll know (more likely) if something gets broken while refactoring. Today I see:
Which means we have plenty of work to do on this side. @tbanevicius could you have a look at non tested lines and see if you can improve the situation? |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Depends on