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.

23 lines
1008 B

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, fields, models, _
  4. from ..helpers import constants
  5. class VracWebsite(models.Model):
  6. _inherit = "website"
  7. payzen_site_id = fields.Char(
  8. string=_('Identifiant boutique'),
  9. help=_('The identifier provided by PayZen.'),
  10. default=constants.PAYZEN_PARAMS.get('SITE_ID'))
  11. payzen_key_test = fields.Char(
  12. string=_('Clé en mode test'),
  13. help=_('Clé fournie par PayZen pour le mode test (disponible dans le Back Office PayZen).'),
  14. default=constants.PAYZEN_PARAMS.get('KEY_TEST'),
  15. readonly=constants.PAYZEN_PLUGIN_FEATURES.get('qualif'))
  16. payzen_key_prod = fields.Char(
  17. string=_('Clé en mode production'),
  18. help=_('Clé fournie par PayZen (disponible dans le Back Office PayZen après activation du mode de production).'),
  19. default=constants.PAYZEN_PARAMS.get('KEY_PROD'))