Skip to content
Snippets Groups Projects

ADD_sepa_direct_debit_mandatory_subscr_request_flow

Merged Xavier Bonet requested to merge ADD_sepa_direct_debit_mandatory_subscr_request_flow into dev
1 unresolved thread

If the product_share used for Mandatory Shares have a Payment Mode that is 'sepa_direct_debit', then:

  • The public forms become_cooperator and become_company_cooperator will ask for a bank account and for mandate authorization.
  • SR will be created and validated following the already existing behavior that we implemented on voluntary shares related to bank account, payment mode and bank mandate.
  • The 1st confirmation email will add the fields iban and mandate authorization.
  • The 2nd enail (on validation SR) will advise about a imminent receipt draft will be issued to the bank account.

It is related to this card.

Caution with translations --> This MR have some translations that are implemented throw 3 *.po files located under folder i18n_extra and are translations related with elements inside email_templates of cooperator module. In this case, in order to get it applied, after upgrade the energy_community module we must:

  1. locate the ir_model_data records that belongs to those mail templates and proceed to set the field noupdate to False ( the target xml_ids are: 'email_template_confirmation, email_template_release_capital, email_template_certificat. You can do that using the Odoo UI or launching this order on psql over ddbb odoo: update ir_model_data set noupdate = False where name in ('email_template_confirmation', 'email_template_release_capital', 'email_template_certificat');.

  2. proceed to manually import (from Odoo UI) the 3 *.po files

Edited by Xavier Bonet

Merge request reports

Pipeline #31068 passed

Pipeline passed for 78de88b4 on ADD_sepa_direct_debit_mandatory_subscr_request_flow

Approved by

Merged by Xavier BonetXavier Bonet 1 year ago (Jun 1, 2023 2:12pm UTC)

Merge details

  • Changes merged into dev with e6f83092.
  • Deleted the source branch.

Pipeline #31160 passed

Pipeline passed for e6f83092 on dev

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
43 43 if 'country_id' in vals:
44 44 vals['country_id'] = int(vals['country_id'])
45 45 subscription_request = super(SubscriptionRequest, self).create(vals)
46 if not subscription_request.is_voluntary:
46 if not subscription_request.payment_mode_id.payment_method_id.code == 'sepa_direct_debit':
  • Xavier Bonet mentioned in commit e6f83092

    mentioned in commit e6f83092

  • merged

  • Please register or sign in to reply
    Loading