-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
[11.0][MIG] account_invoice_ubl #46
Conversation
Please rebase removing last WIP commit. |
account_invoice_ubl/README.rst
Outdated
Account Invoice UBL | ||
=================== | ||
|
||
This module adds support for UBL, the `Universal Business Language (UBL) <http://ubl.xml.org/>`_ standard, on invoices. The UBL 2.1 standard became the `ISO/IEC 19845 <http://www.iso.org/iso/catalogue_detail.htm?csnumber=66370>`_ standard in December 2015 (cf the `official announce <http://www.prweb.com/releases/2016/01/prweb13186919.htm>_`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too large. Change to
This module adds support for UBL, the `Universal Business Language (UBL)
<http://ubl.xml.org/>`_ standard, on invoices. The UBL 2.1 standard became the
`ISO/IEC 19845 <http://www.iso.org/iso/catalogue_detail.htm?csnumber=66370>`_
standard in December 2015 (cf the `official announce
<http://www.prweb.com/releases/2016/01/prweb13186919.htm>`_).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
symbol _
after `
account_invoice_ubl/README.rst
Outdated
Configuration | ||
============= | ||
|
||
In the menu *Invoicing > Configuration > Settings > Invoicing*, under *Electronic Invoices*, check the value of 2 options: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too large. Change to
In the menu *Invoicing > Configuration > Settings > Invoicing*, under
*Electronic Invoices*, check the value of 2 options:
account_invoice_ubl/README.rst
Outdated
|
||
In the menu *Invoicing > Configuration > Settings > Invoicing*, under *Electronic Invoices*, check the value of 2 options: | ||
|
||
* *XML Format embedded in PDF invoice* : if you want to have an UBL XML file embedded inside the PDF invoice, set it to *Universal Business Language (UBL)* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too large. Change to
* *XML Format embedded in PDF invoice* : if you want to have an UBL XML file
embedded inside the PDF invoice, set it to
*Universal Business Language (UBL)*
account_invoice_ubl/README.rst
Outdated
In the menu *Invoicing > Configuration > Settings > Invoicing*, under *Electronic Invoices*, check the value of 2 options: | ||
|
||
* *XML Format embedded in PDF invoice* : if you want to have an UBL XML file embedded inside the PDF invoice, set it to *Universal Business Language (UBL)* | ||
* if you work directly with XML invoices and you want to have the PDF invoice in base64 inside the XML file, enable the *Embed PDF in UBL XML Invoice*. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too large. Change to:
* if you work directly with XML invoices and you want to have the PDF invoice
in base64 inside the XML file, enable the *Embed PDF in UBL XML Invoice*.
account_invoice_ubl/__manifest__.py
Outdated
@@ -0,0 +1,23 @@ | |||
# © 2016-2018 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change symbol ©
to Copyright
@@ -0,0 +1,26 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<!-- | |||
© 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change symbol ©
to Copyright
oca_dependencies.txt
Outdated
@@ -1,2 +1,6 @@ | |||
partner-contact | |||
community-data-files | |||
edi https://github.com/onesteinbv/edi 11_mig_base_ubl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these lines are not necessary if you rebase your pr.
order_ref_id.text = self.name | ||
|
||
@api.multi | ||
def _ubl_get_contract_document_reference_dict(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why this method. One record is ensured in parent method, and this do nothing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand either 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cubells is it ok for you to leave this method as it is and move forward?
ns, version=version) | ||
|
||
@api.multi | ||
def get_delivery_partner(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method either. This is not used anymore in module. And if is an inheritance, class method is name def get_delivery_partner_id() in AccountInvoice class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will cherry pick commit 4ac8b4a that removes this method and the other useless code
self._ubl_add_customer_party( | ||
self.partner_id, False, 'AccountingCustomerParty', xml_root, ns, | ||
version=version) | ||
# delivery_partner = self.get_delivery_partner() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These commented lines are correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check tests. Fail in local database.
Print numbers with the approriate number of digits in the XML
Add support for partner bank matching on invoice update (before, it was only supported on invoice creation)
Rename __openerp__.py to __manifest__.py and set installable to False
Also port all the modules that generate the XML documents: account_invoice_ubl, account_invoice_zugferd, purchase_order_ubl and sale_order_ubl
Rename account_invoice_import_zugferd to account_invoice_import_factur-x Add module to support py3o reporting engine:
Add active buttons on invoice import config
… module Fix spelling mistake and other remarks on README by Tarteo
Add ubl invoice generation option in accounting config page
…xist in v10) in account_invoice_factur-x and account_invoice_ubl
Add script mass_invoice_import.py Code cleanup
* sale_order_ubl + purchase_order_ubl: restore get_pdf() in tests using HttpCase * Restore get_pdf() in tests of account_invoice_factur-x and account_invoice_ubl modules * Update oca_dependencies.txt
… embedding in PDF between account_invoice_factur-x and account_invoice_ubl
Tests are failing because of these two lines in Odoo V11. When running tests, if the I tried locally: commenting out the two lines above will make the tests passing. Is there a way to set |
For this branch I'm passing the option |
Thanks! |
Depends on: