mirror of
https://gitlab.com/flectra-community/l10n-switzerland-flectra.git
synced 2024-12-23 12:51:45 +00:00
fix error. add url für invocloud
This commit is contained in:
parent
7daf54fee2
commit
e7f20ff1f1
@ -25,7 +25,7 @@ class AccountInvoice(models.Model):
|
||||
if self.transmit_method_id == paynet_method:
|
||||
contract = self.partner_id.get_active_contract(self.transmit_method_id)
|
||||
if contract:
|
||||
self.invoice_partner_bank_id = (
|
||||
self.partner_bank_id = (
|
||||
contract.paynet_service_id.partner_bank_id
|
||||
)
|
||||
|
||||
|
@ -62,6 +62,12 @@ class PaynetService(models.Model):
|
||||
help="There are some specific diference between provider",
|
||||
)
|
||||
|
||||
@api.onchange('service_provider')
|
||||
def _onchange_fill_provider_url(self):
|
||||
if self.service_provider == 'invocloud':
|
||||
self.url = 'https://api.invohub.ch/dws'
|
||||
else:
|
||||
self.url = 'https://dws.paynet.ch/DWS/DWS'
|
||||
|
||||
@api.depends("use_test_service")
|
||||
def _compute_url(self):
|
||||
|
Loading…
Reference in New Issue
Block a user