diff --git a/mrp_partner_note/README.rst b/mrp_production_partner_note/README.rst similarity index 83% rename from mrp_partner_note/README.rst rename to mrp_production_partner_note/README.rst index 33b99c35d..cfd676af7 100644 --- a/mrp_partner_note/README.rst +++ b/mrp_production_partner_note/README.rst @@ -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 `_. 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 `_. +`here `_. 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. \ No newline at end of file +To contribute to this module, please visit http://odoo-community.org. diff --git a/mrp_partner_note/__init__.py b/mrp_production_partner_note/__init__.py similarity index 100% rename from mrp_partner_note/__init__.py rename to mrp_production_partner_note/__init__.py diff --git a/mrp_partner_note/__openerp__.py b/mrp_production_partner_note/__openerp__.py similarity index 99% rename from mrp_partner_note/__openerp__.py rename to mrp_production_partner_note/__openerp__.py index 8cf3d2789..daf35bd9b 100644 --- a/mrp_partner_note/__openerp__.py +++ b/mrp_production_partner_note/__openerp__.py @@ -32,7 +32,6 @@ "category": "Tools", "depends": [ "sale", - "mrp", "mrp_production_note", ], "data": [ diff --git a/mrp_partner_note/i18n/es.po b/mrp_production_partner_note/i18n/es.po similarity index 100% rename from mrp_partner_note/i18n/es.po rename to mrp_production_partner_note/i18n/es.po diff --git a/mrp_partner_note/i18n/mrp_partner_note.pot b/mrp_production_partner_note/i18n/mrp_partner_note.pot similarity index 100% rename from mrp_partner_note/i18n/mrp_partner_note.pot rename to mrp_production_partner_note/i18n/mrp_partner_note.pot diff --git a/mrp_partner_note/models/__init__.py b/mrp_production_partner_note/models/__init__.py similarity index 100% rename from mrp_partner_note/models/__init__.py rename to mrp_production_partner_note/models/__init__.py diff --git a/mrp_partner_note/models/procurement_order.py b/mrp_production_partner_note/models/procurement_order.py similarity index 77% rename from mrp_partner_note/models/procurement_order.py rename to mrp_production_partner_note/models/procurement_order.py index 27983f11e..5e1c27088 100644 --- a/mrp_partner_note/models/procurement_order.py +++ b/mrp_production_partner_note/models/procurement_order.py @@ -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 diff --git a/mrp_partner_note/models/res_partner.py b/mrp_production_partner_note/models/res_partner.py similarity index 100% rename from mrp_partner_note/models/res_partner.py rename to mrp_production_partner_note/models/res_partner.py diff --git a/mrp_partner_note/views/res_partner_view.xml b/mrp_production_partner_note/views/res_partner_view.xml similarity index 100% rename from mrp_partner_note/views/res_partner_view.xml rename to mrp_production_partner_note/views/res_partner_view.xml