MIG mrp_production_add For Odoo 12.0

This commit is contained in:
Bhoomi
2019-08-28 16:31:20 -04:00
parent eaeff917bd
commit 1e9670957d
3 changed files with 21 additions and 21 deletions

View File

@@ -1,14 +1,16 @@
{
'name': 'MRP Production Add Item',
'author': 'Hibou Corp. <hello@hibou.io>',
'version': '11.0.1.0.0',
'version': '12.0.1.0.0',
'category': 'Manufacturing',
'summary': 'Add Items to an existing Production',
'description': """
This module allows a production order to add additional items that are not on the product's BoM.
""",
'website': 'https://hibou.io/',
'depends': ['mrp'],
'depends': [
'mrp',
],
'data': [
'wizard/additem_wizard_view.xml',
'views/mrp_production.xml',

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record id="mrp_production_add_production_item_form_view" model="ir.ui.view">
<field name="name">mrp.production.add_production_item.form.view</field>
<field name="model">mrp.production</field>
@@ -17,5 +16,4 @@
</xpath>
</field>
</record>
</data>
</odoo>

View File

@@ -25,7 +25,7 @@ class AddProductionItem(models.TransientModel):
def _onchange_product_id(self):
for item in self:
if item.product_id:
item.product_uom_id = item.product_id.uom_id
item.product_uom_id = item.product_id.uom_id.id
else:
item.product_uom_id = False