mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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().\
|
||||||
|
|||||||
Reference in New Issue
Block a user