This commit is contained in:
guohuadeng
2018-07-24 04:49:09 +08:00
parent 7831cecd0f
commit 92bcaf9e0b
2 changed files with 4 additions and 2 deletions

View File

@@ -237,6 +237,8 @@ class AppThemeConfigSettings(models.TransientModel):
['mrp.production.product.line', ], ['mrp.production.product.line', ],
['mrp.unbuild', ], ['mrp.unbuild', ],
['change.production.qty', ], ['change.production.qty', ],
['sale.forecast.indirect', ],
['sale.forecast', ],
] ]
try: try:
for line in to_removes: for line in to_removes:

View File

@@ -2,7 +2,7 @@
# # Copyright 2017 Camptocamp SA # # Copyright 2017 Camptocamp SA
# # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
# #
from odoo import api, models from odoo import api, models, _
class ProcurementGroup(models.Model): class ProcurementGroup(models.Model):
@@ -16,7 +16,7 @@ class ProcurementGroup(models.Model):
@api.model @api.model
def _get_rule(self, product_id, location_id, values): def _get_rule(self, product_id, location_id, values):
res = super()._get_rule(product_id, location_id, values) res = super(ProcurementGroup, self)._get_rule(product_id, location_id, values)
if not res: if not res:
if self._is_subcontracted_service(product_id): if self._is_subcontracted_service(product_id):
rule_id = location_id.get_warehouse().\ rule_id = location_id.get_warehouse().\