|
@ -19,7 +19,7 @@ |
|
|
# If not, see <http://www.gnu.org/licenses/>. |
|
|
# If not, see <http://www.gnu.org/licenses/>. |
|
|
# |
|
|
# |
|
|
############################################################################### |
|
|
############################################################################### |
|
|
from odoo import models, fields |
|
|
from odoo import api, models, fields |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PosConfig(models.Model): |
|
|
class PosConfig(models.Model): |
|
@ -29,3 +29,7 @@ class PosConfig(models.Model): |
|
|
refund_security = fields.Integer(string='Refund Security', |
|
|
refund_security = fields.Integer(string='Refund Security', |
|
|
help="Refund security password, used for " |
|
|
help="Refund security password, used for " |
|
|
"that specified shop") |
|
|
"that specified shop") |
|
|
|
|
|
@api.model |
|
|
|
|
|
def fetch_global_refund_security(self): |
|
|
|
|
|
param = self.env['ir.config_parameter'].sudo().get_param('pos_refund_password.global_refund_security') |
|
|
|
|
|
return param |
|
|