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.

42 lines
1.6 KiB

3 years ago
  1. # Copyright 2021 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 fields, models, api
  4. class ResConfigSettings(models.TransientModel):
  5. _inherit = 'res.config.settings'
  6. # ------------------------------------------------------
  7. # Fields declaration
  8. # ------------------------------------------------------
  9. amount_limit = fields.Float(
  10. string="Montant minimum pour passer au paiement",
  11. related='website_id.amount_limit', readonly=False)
  12. # ------------------------------------------------------
  13. # SQL Constraints
  14. # ------------------------------------------------------
  15. # ------------------------------------------------------
  16. # Default methods
  17. # ------------------------------------------------------
  18. # ------------------------------------------------------
  19. # Computed fields / Search Fields
  20. # ------------------------------------------------------
  21. # ------------------------------------------------------
  22. # Onchange / Constraints
  23. # ------------------------------------------------------
  24. # ------------------------------------------------------
  25. # CRUD methods (ORM overrides)
  26. # ------------------------------------------------------
  27. # ------------------------------------------------------
  28. # Actions
  29. # ------------------------------------------------------
  30. # ------------------------------------------------------
  31. # Business methods
  32. # ------------------------------------------------------