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.

27 lines
831 B

  1. # Copyright (C) 2018 - TODAY, Open Source Integrators
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  3. from odoo import fields, models
  4. class StockPicking(models.Model):
  5. _inherit = "stock.picking"
  6. agreement_id = fields.Many2one('agreement', 'Agreement')
  7. class StockMove(models.Model):
  8. _inherit = "stock.move"
  9. agreement_id = fields.Many2one('agreement',
  10. related='picking_id.agreement_id',
  11. string='Agreement',
  12. store=True)
  13. class StockProductionLot(models.Model):
  14. _inherit = "stock.production.lot"
  15. agreement_id = fields.Many2one('agreement', 'Agreement')
  16. serviceprofile_id = fields.Many2one('agreement.serviceprofile',
  17. 'Service Profile')