mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] Renamed module <mrp_partner_note> to <mrp_production_partner_note>
This commit is contained in:
@@ -5,8 +5,7 @@ Partner production notes
|
||||
========================
|
||||
|
||||
This module adds the possibility of defining a note for production in the
|
||||
partner so when the MO is automatically created it will be written this note
|
||||
in it.
|
||||
partner so when the MO is automatically created, this note will be written.
|
||||
|
||||
|
||||
Bug Tracker
|
||||
@@ -15,7 +14,7 @@ Bug Tracker
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/manufacture/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
|
||||
`here <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_partner_note%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`here <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_production_partner_note%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
|
||||
Credits
|
||||
@@ -41,4 +40,4 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
To contribute to this module, please visit http://odoo-community.org.
|
||||
To contribute to this module, please visit http://odoo-community.org.
|
||||
@@ -32,7 +32,6 @@
|
||||
"category": "Tools",
|
||||
"depends": [
|
||||
"sale",
|
||||
"mrp",
|
||||
"mrp_production_note",
|
||||
],
|
||||
"data": [
|
||||
@@ -12,6 +12,9 @@ class ProcurementOrder(models.Model):
|
||||
@api.model
|
||||
def _prepare_mo_vals(self, procurement):
|
||||
res = super(ProcurementOrder, self)._prepare_mo_vals(procurement)
|
||||
notes = res.get('notes', '')
|
||||
sale_proc = procurement.move_dest_id.procurement_id
|
||||
res['notes'] = sale_proc.sale_line_id.order_id.partner_id.mrp_notes
|
||||
notes += ('|n%s' %
|
||||
(sale_proc.sale_line_id.order_id.partner_id.mrp_notes or ''))
|
||||
res['notes'] = notes
|
||||
return res
|
||||
Reference in New Issue
Block a user