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.

48 lines
1.7 KiB

  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
  4. from datetime import datetime
  5. class AccountInvoice(models.Model):
  6. _inherit = 'account.invoice'
  7. # ------------------------------------------------------
  8. # Fields declaration
  9. # ------------------------------------------------------
  10. vracoop_point_retrait_id = fields.Many2one(
  11. comodel_name='vracoop.point.retrait',
  12. string="Point retrait")
  13. day_retrait = fields.Date("Jour du retrait")
  14. hour_retrait = fields.Float("Heure du retrait")
  15. carrier_point_retrait = fields.Boolean(
  16. string='Est un point retrait')
  17. # ------------------------------------------------------
  18. # SQL Constraints
  19. # ------------------------------------------------------
  20. # ------------------------------------------------------
  21. # Default methods
  22. # ------------------------------------------------------
  23. # ------------------------------------------------------
  24. # Computed fields / Search Fields
  25. # ------------------------------------------------------
  26. # ------------------------------------------------------
  27. # Onchange / Constraints
  28. # ------------------------------------------------------
  29. # ------------------------------------------------------
  30. # CRUD methods (ORM overrides)
  31. # ------------------------------------------------------
  32. # ------------------------------------------------------
  33. # Actions
  34. # ------------------------------------------------------
  35. # ------------------------------------------------------
  36. # Business methods
  37. # ------------------------------------------------------