This removes the procurement.order model. To fufill their needs SO, PO, MO and stock moves now call the _run method of the relevant procurement.group. This mecanism is now only used for stockable product, tasks now uses their own independent mecanism. The _run method will check all the applicable rules and create directly the needed model to fufill the need. The modules stock, purchase, mrp, extends the _run method to implement their specific strategy relevant for the rule type they define. If an exception happens the message will be logged as a mail messsage on the source model, for example, if a sales order cannot be fufilled the salesperson will now see directly the reason. OLD commit messages: [WIP] procurement: removing procurement.order in stock, sale, purchase, sale_stock. WIP fixup! [WIP] procurement: removing procurement.order in stock, sale, purchase, sale_stock. WIP [IMP] Basic tests [FIX] test not necessary anymore [FIX] remove unnecessary print statement [FIX] unnecessary test + why passing warehouse worked before? [IMP] purchase: one move by purchase order line [FIX] purchase: correct inventory tests and pass move_dest_ids among procurements [FIX] because of bad cherry-pick merge [IMP] make mrp pass by adding move_dest_ids there too [IMP] tests of sale_mrp, no need for cancelpropagation then [IMP] better to consistently use recordsets also for one2many [FIX] purchase_requisition [FIX] Exceptions should trigger errors, which should be caught in the tests [FIX] sale_mrp: remove usage of procurement.order and use sale order name instead of sol [FIX] stock_dropshipping: add sale_line_id on purchase_line_id [FIX] Remove pdb [IMP] add stock_dropshipping files [IMP] stock: search carrier through sale line instead of procurement group [IMP] add procrule test and preision needed when updating sol [FIX] sale_order_dates + [IMP] procurement exceptions by scheduler [FIX] No need to return task [IMP] move file as name changes and add corrections [FIX] Continue Run Schedulers wizard fix [FIX] name issues of takss [FIX] updating sale order line, but there is still a problem with the recompute
157 lines
6.6 KiB
XML
157 lines
6.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
|
|
<record id="removal_fifo" model="product.removal">
|
|
<field name="name">First In First Out (FIFO)</field>
|
|
<field name="method">fifo</field>
|
|
</record>
|
|
<record id="removal_lifo" model="product.removal">
|
|
<field name="name">Last In First Out (LIFO)</field>
|
|
<field name="method">lifo</field>
|
|
</record>
|
|
|
|
<!--
|
|
Resource: stock.location
|
|
-->
|
|
<record id="stock_location_locations" model="stock.location">
|
|
<field name="name">Physical Locations</field>
|
|
<field name="usage">view</field>
|
|
<field name="company_id"></field>
|
|
</record>
|
|
<record id="stock_location_locations_partner" model="stock.location">
|
|
<field name="name">Partner Locations</field>
|
|
<field name="usage">view</field>
|
|
<field name="posz">1</field>
|
|
<field name="company_id"></field>
|
|
</record>
|
|
<record id="stock_location_locations_virtual" model="stock.location">
|
|
<field name="name">Virtual Locations</field>
|
|
<field name="usage">view</field>
|
|
<field name="posz">1</field>
|
|
<field name="company_id"></field>
|
|
</record>
|
|
<record id="stock_location_scrapped" model="stock.location">
|
|
<field name="name">Scrapped</field>
|
|
<field name="location_id" ref="stock_location_locations_virtual"/>
|
|
<field name="scrap_location">True</field>
|
|
<field name="usage">inventory</field>
|
|
<field name="company_id"></field>
|
|
</record>
|
|
|
|
<record id="location_inventory" model="stock.location">
|
|
<field name="name">Inventory adjustment</field>
|
|
<field name="location_id" ref="stock_location_locations_virtual"/>
|
|
<field name="usage">inventory</field>
|
|
<field name="company_id"></field>
|
|
</record>
|
|
<record id="location_procurement" model="stock.location">
|
|
<field name="name">Procurements</field>
|
|
<field name="location_id" ref="stock_location_locations_virtual"/>
|
|
<field name="usage">procurement</field>
|
|
<field name="company_id"></field>
|
|
</record>
|
|
<record id="location_production" model="stock.location">
|
|
<field name="name">Production</field>
|
|
<field name="location_id" ref="stock_location_locations_virtual"/>
|
|
<field name="usage">production</field>
|
|
<field name="company_id"></field>
|
|
</record>
|
|
<record id="stock_location_suppliers" model="stock.location">
|
|
<field name="name">Vendors</field>
|
|
<field name="location_id" ref="stock_location_locations_partner"/>
|
|
<field name="usage">supplier</field>
|
|
<field name="company_id"></field>
|
|
</record>
|
|
<record id="stock_location_customers" model="stock.location">
|
|
<field name="name">Customers</field>
|
|
<field name="location_id" ref="stock_location_locations_partner"/>
|
|
<field name="usage">customer</field>
|
|
<field name="company_id"></field>
|
|
</record>
|
|
|
|
<record id="stock_location_inter_wh" model="stock.location">
|
|
<field name="name">Inter Company Transit</field>
|
|
<field name="location_id" ref="stock_location_locations_virtual"/>
|
|
<field name="usage">transit</field>
|
|
<field name="company_id"></field>
|
|
</record>
|
|
|
|
</data>
|
|
<data noupdate="1">
|
|
|
|
<!--
|
|
Request link
|
|
-->
|
|
<record id="req_link_tracking" model="res.request.link">
|
|
<field name="name">Lot/Serial Number</field>
|
|
<field name="object">stock.production.lot</field>
|
|
</record>
|
|
|
|
|
|
<!--
|
|
Procurement rules
|
|
-->
|
|
|
|
<record id="route_warehouse0_mto" model='stock.location.route'>
|
|
<field name="name">Make To Order</field>
|
|
<field name="sequence">10</field>
|
|
</record>
|
|
|
|
<!--
|
|
Properties
|
|
-->
|
|
<record forcecreate="True" id="property_stock_supplier" model="ir.property">
|
|
<field name="name">property_stock_supplier</field>
|
|
<field name="fields_id" search="[('model','=','res.partner'),('name','=','property_stock_supplier')]"/>
|
|
<field eval="'stock.location,'+str(stock_location_suppliers)" name="value"/>
|
|
</record>
|
|
<record forcecreate="True" id="property_stock_customer" model="ir.property">
|
|
<field name="name">property_stock_customer</field>
|
|
<field name="fields_id" search="[('model','=','res.partner'),('name','=','property_stock_customer')]"/>
|
|
<field eval="'stock.location,'+str(stock_location_customers)" name="value"/>
|
|
</record>
|
|
<record forcecreate="True" id="property_stock_inventory" model="ir.property">
|
|
<field name="name">property_stock_inventory</field>
|
|
<field name="fields_id" search="[('model','=','product.template'),('name','=','property_stock_inventory')]"/>
|
|
<field eval="'stock.location,'+str(location_inventory)" name="value"/>
|
|
</record>
|
|
<record forcecreate="True" id="property_stock_production" model="ir.property">
|
|
<field name="name">property_stock_production</field>
|
|
<field name="fields_id" search="[('model','=','product.template'),('name','=','property_stock_production')]"/>
|
|
<field eval="'stock.location,'+str(location_production)" name="value"/>
|
|
</record>
|
|
|
|
|
|
<!--
|
|
Resource: stock.warehouse
|
|
-->
|
|
|
|
|
|
<record id="warehouse0" model="stock.warehouse">
|
|
<field model="res.company" name="name" search="[]" use="name"/>
|
|
<field name="partner_id" ref="base.main_partner"/>
|
|
<field name="code">WH</field>
|
|
</record>
|
|
|
|
<record id="sequence_mrp_op" model="ir.sequence">
|
|
<field name="name">Stock orderpoint</field>
|
|
<field name="code">stock.orderpoint</field>
|
|
<field name="prefix">OP/</field>
|
|
<field name="padding">5</field>
|
|
<field name="number_next">1</field>
|
|
<field name="number_increment">1</field>
|
|
</record>
|
|
|
|
<record id="sequence_stock_scrap" model="ir.sequence">
|
|
<field name="name">Scrap</field>
|
|
<field name="code">stock.scrap</field>
|
|
<field name="prefix">SP/</field>
|
|
<field name="padding">5</field>
|
|
<field name="number_next">1</field>
|
|
<field name="number_increment">1</field>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|