1 Commits
Author SHA1 Message Date
Sven Fuehr a513523ed6 [ADD] l10n_ec_website_sale: adapt eCommerce to allow EDI invoice
Currently the eCommerce workflow in Ecuador lacks some information
needed to issue EDI invoices.

The main adaptions needed are:
  * Identification type and number in the checkout process (in the billing address)
  * SRI Payment Method in the eCommerce Payment Method

SRI Payment Method
  * The SRI Payment Method value is required for the EDI
  * In the payment method form view the SRI Payment Method field is hidden
    if the list of fiscal countries of the selected companies does not include Ecuador.
  * Payment methods which do not have an associated SRI Payment Method
    cannot be used in the eCommerce checkout of an Ecuadorian company.
  * A (default) SRI Payment Method has been addeded to some payment methods to simplify the setup.
  * When creating an invoice from a sales order we try to compute the SRI Payment Method as follows:
    We consider all the SRI Payment Methods of the payment methods of the payment transactions associated with the sales order.
    If there is exactly 1 such SRI Payment Method we use this on the invoice.
    This should ensures that we can always set the SRI Payment Method on invoices created through the eCommerce flow.

task-3585823

Part-of: odoo/odoo#142730
2024-02-03 02:06:43 +00:00