pos_cashdro_allow_manual: move config from paymet.method to res.config
This commit is contained in:
parent
d994ab600e
commit
86101218e9
8 changed files with 48 additions and 38 deletions
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
The button is shown when:
|
||||
- the payment method is of type "cashdro"
|
||||
- cashdro_allow_manual_amount is True on that payment method
|
||||
- cashdro_allow_manual_amount is True on the pos.config
|
||||
- the line is in "pending" or "retry" state (the two states where
|
||||
the numpad is already active and the cashier can edit the amount)
|
||||
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
<xpath expr="//div[hasclass('send_payment_request')]" position="before">
|
||||
<t
|
||||
t-if="line.payment_method.use_payment_terminal === 'cashdro'
|
||||
and line.payment_method.cashdro_allow_manual_amount"
|
||||
and env.pos.config.cashdro_allow_manual_amount"
|
||||
>
|
||||
<div
|
||||
class="button cashdro-manual-button"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue