You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
815 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. # © 2019 Le Filament (<http://www.le-filament.com>)
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  3. from odoo import api, models, fields, _
  4. from ..helpers import constants
  5. class ResConfigSettings(models.TransientModel):
  6. _inherit = 'res.config.settings'
  7. payzen_site_id = fields.Char(
  8. string='Identifiant boutique',
  9. related='website_id.payzen_site_id',
  10. readonly=False)
  11. payzen_key_test = fields.Char(
  12. string='Clé en mode test',
  13. related='website_id.payzen_key_test',
  14. readonly=False)
  15. payzen_key_prod = fields.Char(
  16. string='Clé en mode production',
  17. related='website_id.payzen_key_prod',
  18. readonly=False)
  19. @api.multi
  20. def execute_payzen(self):
  21. self.ensure_one()
  22. return self.execute