2 Commits
Author SHA1 Message Date
Yosua Nicolaus 1bb1a95ab8 [IMP] l10n_ec_website_sale: portal contact information
Currently, if a customer wants to edit his/her information from the
Portal access, they cannot modify the information linked to EC.

This commit aims to support Ecuadorian companies needed information when
editing the portal contact information:

- added "Identification Type" field
- renamed "VAT" to "Identification Number"
- make those 2 fields required

closes odoo/odoo#142730

Task-id: 3620196
Signed-off-by: Josse Colpaert <jco@odoo.com>
2024-02-03 02:06:43 +00:00
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