mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
18 lines
661 B
Python
18 lines
661 B
Python
# -*- encoding: utf-8 -*-
|
|
##############################################################################
|
|
# For copyright and license notices, see __openerp__.py file in root directory
|
|
##############################################################################
|
|
|
|
from openerp import models, api
|
|
|
|
|
|
class ProcurementOrder(models.Model):
|
|
_inherit = 'procurement.order'
|
|
|
|
@api.model
|
|
def _prepare_mo_vals(self, procurement):
|
|
res = super(ProcurementOrder, self)._prepare_mo_vals(procurement)
|
|
sale_proc = procurement.move_dest_id.procurement_id
|
|
res['notes'] = sale_proc.sale_line_id.order_id.partner_id.mrp_notes
|
|
return res
|