[ADD] payment and mandate to cooperator
Changelog
- [ADD] New module
account_payment_cooperator
adds payment mode tosubscription.request
- [ADD] New module
account_banking_mandate_cooperator
to create mandate when necessary insubscription.request
- [ADD] energy_communities depends on these modules
- [RM] Force
skip_iban_control
in subscription request - [RM] Moved to
account_banking_mandate_cooperator
fieldmandate_approved
(Still using in views and web form, #TODO must decide how to structure this)
Edited by Daniil Digtyar Vasilieva
Merge request reports
Activity
requested review from @enricostn
assigned to @DaniilDigtyar
- Resolved by Daniil Digtyar Vasilieva
- Resolved by Daniil Digtyar Vasilieva
- Resolved by Daniil Digtyar Vasilieva
- Resolved by Daniil Digtyar Vasilieva
- Resolved by Daniil Digtyar Vasilieva
- Resolved by Daniil Digtyar Vasilieva
- Resolved by Daniil Digtyar Vasilieva
- Resolved by Daniil Digtyar Vasilieva
49 raise ValidationError(_('There isn\'t a valid bank to create the mandate.')) 50 return self.env['account.banking.mandate'].create( 51 values 52 ) 53 return False 54 55 def get_mandate_values(self): 56 bank_id = self.get_bank() 57 return { 58 'format': 'basic', 59 'type': 'generic', 60 'state': 'valid', 61 'signature_date': self.date, 62 'partner_bank_id': bank_id.id, 63 'partner_id': self.partner_id.id, 64 'company_id': self.partner_id.company_id.id, changed this line in version 5 of the diff
added 10 commits
- 11a7f712 - [FIX] payment_mode_id not needed to be company_dependent
- 20adc53f - format
- 54b907f6 - [UPD] field name updated
- 7c85f700 - [UPD] sepa mandate values
- c39d62c6 - [UPD] reduced redundancy
- 43c7e0c0 - [UPD] use company_id from subscription instead of partner
- a54454b8 - [UPD] format to better understanding
- c0cebd8c - [UPD] removed validation block
- 7a4f68f8 - [RM] iban validation control
- 1466ea64 - Merge remote-tracking branch 'origin/ADD_payment_mode_module' into ADD_payment_mode_module
Toggle commit listmentioned in commit 1e735de0
Please register or sign in to reply