odoo/odoo#195160

Created by fw-bot
Merged at 6bc2d5c8854671a47feccff072f1089e7b00c448

Statuses:

label
odoo-dev:saas-17.4-17.0-myinvois_qr_self_billed-vin-g1Eo-fw
head
8da659b1fbc114a726d44d009acbd83231ff7532
merged
9 months ago by Nicolas Viseur (vin)
odoo/odoo
17.0 #193497
saas-17.2 #195152
saas-17.4 #195160
18.0 #195174
saas-18.1 #195175
saas-18.2
saas-18.3
saas-18.4
19.0
master #195177

[FW][IMP] l10n_my_edi: Various improvements

Brings various needed improvements to the module, either in place or
via a new extended module.

  • Neutralization resets to pre-production
  • Better handling of errors when generating the file by using the commercial partner
    as expected.
  • Align all the flows which update the invoice status to ensure that the data is
    consistent.
  • Improve validation for some special cases (lines without products, tax exemption)
  • Add a new field for Malaysian TIN, mostly for foreign entities.
    Will be used by default in all flows for MyInvois, with fallback on the Tax ID if empty.
  • Classification code on invoice line, making the use of products optional.
  • Rework the views for all fields related to ID on res.partner to align with other similar
    fields. They will be Readonly on res.partner with a parent id, but displays the value of
    the commercial partner.
  • Industrial classification on the partner.
  • "Full" support of self billing.
  • Reworked flow to send to MyInvois BEFORE send & print. Which adds support for the
    QR code generation, and new field to store the QR code long ID.
  • Send & Print can no longer be used to send invoices to MyInvois after the new
    module is installed

task-4363294


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #193497