[FIX] exp_transaction_documents: try another solution to fix url of transaction
This commit is contained in:
parent
f2117512c0
commit
ca40ba87e2
|
|
@ -47,8 +47,10 @@
|
|||
</tr>
|
||||
</table>
|
||||
</p><br/>
|
||||
<p style="font-size: 1.1em;text-align: right;">
|
||||
<a href="${object.get_url()}">رابط المعاملة</a>
|
||||
<p style="font-size: 1.1em; text-align: right;">
|
||||
<a href="${object.get_url()}" target="_blank">
|
||||
رابط المعاملة
|
||||
</a>
|
||||
</p>
|
||||
<p style="font-size: 1.1em;text-align: right">
|
||||
<a href="${user.company_id.website}">${user.company_id.name}</a>
|
||||
|
|
|
|||
|
|
@ -244,8 +244,10 @@
|
|||
</tr>
|
||||
</table>
|
||||
</p><br/>
|
||||
<p style="font-size: 1.1em;text-align: right;">
|
||||
<a href="${object.get_url()}">رابط المعاملة</a>
|
||||
<p style="font-size: 1.1em; text-align: right;">
|
||||
<a href="${object.get_url()}" target="_blank">
|
||||
رابط المعاملة
|
||||
</a>
|
||||
</p>
|
||||
<p style="font-size: 1.1em;text-align: right">
|
||||
<a href="${user.company_id.website}">${user.company_id.name}</a>
|
||||
|
|
|
|||
|
|
@ -43,8 +43,10 @@
|
|||
</tr>
|
||||
</table>
|
||||
</p><br/>
|
||||
<p style="font-size: 1.1em;text-align: right;">
|
||||
<a href="${object.get_url()}">رابط المعاملة</a>
|
||||
<p style="font-size: 1.1em; text-align: right;">
|
||||
<a href="${object.get_url()}" target="_blank">
|
||||
رابط المعاملة
|
||||
</a>
|
||||
</p>
|
||||
<p style="font-size: 1.1em;text-align: right">
|
||||
<a href="${user.company_id.website}">${user.company_id.name}</a>
|
||||
|
|
|
|||
|
|
@ -104,13 +104,12 @@ class IncomingTransaction(models.Model):
|
|||
@api.model
|
||||
def get_url(self):
|
||||
url = u''
|
||||
action = self.env.ref('exp_transaction_documents.forward_incoming_external_tran_action', False)
|
||||
action = self.env.ref(
|
||||
'exp_transaction_documents.incoming_internal_tran_action', False)
|
||||
Param = self.env['ir.config_parameter'].sudo()
|
||||
base_url = Param.get_param('web.base.url', self.env.user.company_id.website)
|
||||
|
||||
if action:
|
||||
return u'{}/web#id={}&model=incoming.transaction&view_type=form&action={}'.format(
|
||||
base_url, self.id, action.id)
|
||||
Param.get_param('web.base.url', self.env.user.company_id.website), self.id, action.id)
|
||||
return url
|
||||
|
||||
@api.depends('incoming_date')
|
||||
|
|
|
|||
|
|
@ -91,13 +91,12 @@ class InternalTransaction(models.Model):
|
|||
@api.model
|
||||
def get_url(self):
|
||||
url = u''
|
||||
action = self.env.ref('exp_transaction_documents.forward_incoming_external_tran_action', False)
|
||||
action = self.env.ref(
|
||||
'exp_transaction_documents.incoming_internal_tran_action', False)
|
||||
Param = self.env['ir.config_parameter'].sudo()
|
||||
base_url = Param.get_param('web.base.url', self.env.user.company_id.website)
|
||||
|
||||
if action:
|
||||
return u'{}/web#id={}&model=incoming.transaction&view_type=form&action={}'.format(
|
||||
base_url, self.id, action.id)
|
||||
Param.get_param('web.base.url', self.env.user.company_id.website), self.id, action.id)
|
||||
return url
|
||||
|
||||
@api.depends('attachment_rule_ids')
|
||||
|
|
|
|||
|
|
@ -87,13 +87,12 @@ class OutgoingTransaction(models.Model):
|
|||
@api.model
|
||||
def get_url(self):
|
||||
url = u''
|
||||
action = self.env.ref('exp_transaction_documents.forward_incoming_external_tran_action', False)
|
||||
action = self.env.ref(
|
||||
'exp_transaction_documents.incoming_internal_tran_action', False)
|
||||
Param = self.env['ir.config_parameter'].sudo()
|
||||
base_url = Param.get_param('web.base.url', self.env.user.company_id.website)
|
||||
|
||||
if action:
|
||||
return u'{}/web#id={}&model=incoming.transaction&view_type=form&action={}'.format(
|
||||
base_url, self.id, action.id)
|
||||
Param.get_param('web.base.url', self.env.user.company_id.website), self.id, action.id)
|
||||
return url
|
||||
|
||||
def fetch_sequence(self, data=None):
|
||||
|
|
|
|||
Loading…
Reference in New Issue