测试坯料采购单根据采购类型合并
This commit is contained in:
@@ -981,11 +981,6 @@ class ReStockMove(models.Model):
|
|||||||
res['retrospect_ref'] = production.product_id.name
|
res['retrospect_ref'] = production.product_id.name
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def _single_manufactuing_mo_generate_origin(self, res):
|
|
||||||
"""
|
|
||||||
单个制造订单的完成move单据修改来源为该制造订单关联的销售订单下所有成品相同的制造订单
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
class ReStockQuant(models.Model):
|
class ReStockQuant(models.Model):
|
||||||
_inherit = 'stock.quant'
|
_inherit = 'stock.quant'
|
||||||
|
|||||||
@@ -4,4 +4,5 @@ from . import quick_easy_order_old
|
|||||||
from . import auto_quatotion_common
|
from . import auto_quatotion_common
|
||||||
from . import parser_and_calculate_work_time
|
from . import parser_and_calculate_work_time
|
||||||
from . import preload_datas_functions
|
from . import preload_datas_functions
|
||||||
|
from . import stock_move
|
||||||
|
|
||||||
|
|||||||
9
sf_sale/models/stock_move.py
Normal file
9
sf_sale/models/stock_move.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
from odoo import models, fields, api
|
||||||
|
|
||||||
|
class StockMove(models.Model):
|
||||||
|
_inherit = 'stock.move'
|
||||||
|
|
||||||
|
@api.model
|
||||||
|
def _prepare_merge_negative_moves_excluded_distinct_fields(self):
|
||||||
|
excluded_fields = super()._prepare_merge_negative_moves_excluded_distinct_fields() + ['pruchase_type']
|
||||||
|
return excluded_fields
|
||||||
Reference in New Issue
Block a user