外协流程更改
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
# always loaded
|
||||
'data': [
|
||||
# 'security/ir.model.access.csv',
|
||||
'data/stock_location_data.xml',
|
||||
'views/stock_picking.xml',
|
||||
'views/stock_product_template.xml',
|
||||
],
|
||||
|
||||
13
sf_stock/data/stock_location_data.xml
Normal file
13
sf_stock/data/stock_location_data.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<record id="stock_location_outsourcing_material_receiving_area" model="stock.location">
|
||||
<field name="name">外协收料区</field>
|
||||
<field name="usage">internal</field>
|
||||
</record>
|
||||
<record id="stock_route_process_outsourcing" model='stock.route'>
|
||||
<field name="name">工序外协</field>
|
||||
<field name="company_id"></field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -1,3 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import stock_picking
|
||||
from . import stock_picking
|
||||
from . import stock_warehouse_orderpoint
|
||||
11
sf_stock/models/stock_warehouse_orderpoint.py
Normal file
11
sf_stock/models/stock_warehouse_orderpoint.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import logging
|
||||
|
||||
from odoo import models, fields
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class StockWarehouseOrderpoint(models.Model):
|
||||
_inherit = 'stock.warehouse.orderpoint'
|
||||
|
||||
origin = fields.Char('补货来源')
|
||||
Reference in New Issue
Block a user