Skip to content

Commit a259983

Browse files
committed
fix(payment_osb): Fix several warnings and errors triggered when installing/loading module
- Remove explicit translations exports when exported implicitly - Add reason for always invisible field in view - Add string attribute to field to avoid duplicate label on model
1 parent 00f4ff9 commit a259983

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

payment_lyra/helpers/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def generate_trans_id():
3838
return str(delta).rjust(6, '0')
3939

4040
def lang_translate(callback, v):
41-
return _(v)
41+
return v
4242

4343
def check_hash(post, key):
4444
return hmac.new(key.encode("utf-8"), eval(json.dumps(post, ensure_ascii=False)).get("kr-answer").encode("utf-8"), hashlib.sha256).hexdigest() == eval(json.dumps(post, ensure_ascii=False)).get("kr-hash")

payment_lyra/views/payment_provider_views_multi.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<field name="inherit_id" ref="payment.payment_provider_form" />
1717
<field name="arch" type="xml">
1818
<xpath expr="//group[@name='lyra_gateway_access']" position="before">
19-
<field name="lyra_multi_warning" invisible="1"/>
19+
<field name="lyra_multi_warning" invisible="1"/><!--required by OSB -->
2020
<div style="background: none repeat scroll 0 0 #FFFFE0; border: 1px solid #E6DB55; font-size: 13px; margin: 0 0 20px; padding: 10px;"
2121
invisible="code != 'lyramulti' or lyra_multi_warning == False">
2222
<p>

0 commit comments

Comments
 (0)