Skip to content

Commit

Permalink
[FIX]move data to demo (will be created in a safer way)
Browse files Browse the repository at this point in the history
[DEL]remove automated actions for rma stages
  • Loading branch information
AaronHForgeFlow committed Sep 25, 2019
1 parent 05a5f94 commit 2aa85db
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 311 deletions.
15 changes: 9 additions & 6 deletions ao_rma/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@
"repair_account", "repair_refurbish", "rma_kanban_stage",
"base_automation",
],
"data": ["data/account_data.xml",
"data/rma_stage.xml",
"data/stock_data.xml",
"data/repair_data.xml",
"data/rma_operation.xml",
"data/base_automation_data.xml",
"data": ["data/rma_stage.xml",
"views/rma_operation_view.xml",
"views/rma_order_line_view.xml",
"wizards/rma_order_line_make_repair_view.xml",
],
"demo": ["demo/account_data.xml",
"demo/stock_data.xml",
"demo/repair_data.xml",
"demo/rma_operation.xml",
"views/rma_operation_view.xml",
"views/rma_order_line_view.xml",
"wizards/rma_order_line_make_repair_view.xml",
Expand Down
261 changes: 0 additions & 261 deletions ao_rma/data/base_automation_data.xml

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<field name="default_raw_material_prod_location_id"
ref="ao_rma.stock_location_repair_warranty"/>
<field name="force_repair_location" ref="ao_rma.rma_external_location"/>
<field name="invoice_method">none</field>
<field name="under_warranty" eval="True"/>
<field name="wip_account_id" search="[('code','=','14370')]" model="account.account"/>
</record>
Expand Down
File renamed without changes.
42 changes: 0 additions & 42 deletions ao_rma/data/stock_data.xml → ao_rma/demo/stock_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,48 +25,6 @@
<field name="rma_selectable" eval="True"/>
</record>

<record id="picking_type_rma_sup_out" model="stock.picking.type">
<field name="name">RMA -> Supplier</field>
<field name="sequence_id" ref="rma.seq_picking_type_rma_sup_out"/>
<field name="default_location_src_id" ref="__export__.stock_location_2483_8a8fa034"/>
<field name="default_location_dest_id"
ref="stock.stock_location_suppliers"/>
<field name="warehouse_id" eval="False"/>
<field name="code">outgoing</field>
</record>

<record id="picking_type_rma_sup_in" model="stock.picking.type">
<field name="name">Supplier -> RMA</field>
<field name="sequence_id" ref="rma.seq_picking_type_rma_sup_in"/>
<field name="default_location_src_id" ref="stock.stock_location_suppliers"/>
<field name="default_location_dest_id"
ref="__export__.stock_location_874"/>
<field name="warehouse_id" eval="False"/>
<field name="code">incoming</field>
</record>

<record id="rule_rma_supplier_out_pull" model="stock.rule">
<field name="name">RMA → Supplier</field>
<field name="action">pull</field>
<field name="warehouse_id" ref="stock.warehouse0"/>
<field name="location_id" ref="stock.stock_location_suppliers"/>
<field name="location_src_id" ref="__export__.stock_location_2483_8a8fa034"/>
<field name="procure_method">make_to_stock</field>
<field name="route_id" ref="route_rma_supplier"/>
<field name="picking_type_id" ref="ao_rma.picking_type_rma_sup_out"/>
</record>

<record id="rule_rma_supplier_in_pull" model="stock.rule">
<field name="name">Supplier → RMA</field>
<field name="action">pull</field>
<field name="warehouse_id" ref="stock.warehouse0"/>
<field name="location_id" ref="__export__.stock_location_874"/>
<field name="location_src_id" ref="stock.stock_location_suppliers"/>
<field name="procure_method">make_to_stock</field>
<field name="route_id" ref="route_rma_supplier"/>
<field name="picking_type_id" ref="ao_rma.picking_type_rma_sup_in"/>
</record>

<!-- LOCATION-->
<record id="rma_external_location" model="stock.location">
<field name="name">RMA External Location</field>
Expand Down
Loading

0 comments on commit 2aa85db

Please sign in to comment.