Initial commit of rma and rma_sale for Odoo 11.0

Big changes to tests (because of the ways stock has changed) and allow activities to be set on RMAs.  Other refactors to reduce code duplication between picking and so returns.
This commit is contained in:
Jared Kipe
2018-08-17 14:42:53 -07:00
parent 50da6a7bbb
commit 625b9cbc38
29 changed files with 1672 additions and 0 deletions

44
rma/data/rma_demo.xml Normal file
View File

@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="template_missing_item" model="rma.template">
<field name="name">Missing Item</field>
<field name="valid_days" eval="10"/>
<field name="create_out_picking" eval="True"/>
<field name="out_type_id" ref="stock.picking_type_out"/>
<field name="out_location_id" ref="stock.stock_location_stock"/>
<field name="out_location_dest_id" ref="stock.stock_location_customers"/>
<field name="out_procure_method">make_to_stock</field>
</record>
<record id="rma_return_sequence" model="ir.sequence">
<field name="name">RMA Returns</field>
<field name="implementation">standard</field>
<field name="prefix">WH/RMA/</field>
<field name="padding" eval="5"/>
<field name="number_increment" eval="1"/>
</record>
<record id="picking_type_rma_return" model="stock.picking.type">
<field name="name">RMA Receipts</field>
<field name="sequence_id" ref="rma_return_sequence"/>
<field name="warehouse_id" ref="stock.warehouse0"/>
<field name="code">incoming</field>
<field name="show_operations" eval="False"/>
<field name="show_reserved" eval="True"/>
<field name="use_create_lots" eval="False"/>
<field name="use_existing_lots" eval="True"/>
<field name="default_location_dest_id" ref="stock.stock_location_stock"/>
</record>
<record id="template_picking_return" model="rma.template">
<field name="name">Picking Return</field>
<field name="usage">stock_picking</field>
<field name="valid_days" eval="10"/>
<field name="create_in_picking" eval="True"/>
<field name="in_type_id" ref="picking_type_rma_return"/>
<field name="in_location_id" ref="stock.stock_location_customers"/>
<field name="in_location_dest_id" ref="stock.stock_location_stock"/>
<field name="in_procure_method">make_to_stock</field>
<field name="in_require_return" eval="True"/>
</record>
</odoo>