-
-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] base_delivery_carrier_files: more fixes on migration to 10.0
- Loading branch information
1 parent
c4bc4f3
commit ac19795
Showing
11 changed files
with
133 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
104 changes: 104 additions & 0 deletions
104
base_delivery_carrier_files/test/carrier_file_test_data.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<data noupdate="0"> | ||
|
||
<!-- Carrier File --> | ||
|
||
<record id="delivery_carrier_file" model="delivery.carrier.file"> | ||
<field name="name">Generic</field> | ||
<field name="type">generic</field> | ||
<field name="auto_export" eval="True"/> | ||
<field name="group_pickings" eval="False"/> | ||
<field name="write_mode">disk</field> | ||
<field name="export_path">/tmp</field> | ||
</record> | ||
|
||
<record id="delivery_carrier_file_manual" model="delivery.carrier.file"> | ||
<field name="name">Generic Manual</field> | ||
<field name="type">generic</field> | ||
<field name="auto_export" eval="False"/> | ||
<field name="group_pickings" eval="True"/> | ||
<field name="write_mode">disk</field> | ||
<field name="export_path">/tmp</field> | ||
</record> | ||
|
||
<!-- Assign the carrier files on the delivery method --> | ||
|
||
<record id="delivery.delivery_carrier" model="delivery.carrier"> | ||
<field name="carrier_file_id" ref="delivery_carrier_file"/> | ||
</record> | ||
|
||
<record id="delivery.free_delivery_carrier" model="delivery.carrier"> | ||
<field name="carrier_file_id" ref="delivery_carrier_file_manual"/> | ||
</record> | ||
|
||
<record id="location_refrigerator" model="stock.location"> | ||
<field name="Refrigerator"/> | ||
<field usage="internal"/> | ||
</record> | ||
|
||
<record id="location_delivery_counter" model="stock.location"> | ||
<field name="name">Delivery Counter</field> | ||
<field name="usage">internal</field> | ||
</record> | ||
|
||
<record id="location_opening" model="stock.location"> | ||
<field name="name">opening</field> | ||
<field name="usage">inventory</field> | ||
</record> | ||
|
||
<record id="product_icecream" model="product.product"> | ||
<field name="default_code">001</field> | ||
<field name="name">Ice Cream</field> | ||
<field name="type">product</field> | ||
<field name="categ_id" ref="product.product_category_1"/> | ||
<field name="list_price">100.0</field> | ||
<field name="standard_price">70.0</field> | ||
<field name="uom_id" ref="product.product_uom_kgm"/> | ||
<field name="uom_po_id" ref="product.product_uom_kgm"/> | ||
<field name="property_stock_inventory" ref="base_delivery_carrier_files.location_opening"/> | ||
<field name="valuation">real_time</field> | ||
<field name="cost_method">average</field> | ||
<field name="property_stock_account_input" ref="account.o_expense"/> | ||
<field name="property_stock_account_output" ref="account.o_income"/> | ||
</record> | ||
|
||
<record id="outgoing_shipment_type_carrier_file" model="stock.picking.type"> | ||
<field name="name">Outgoing Ice Cream</field> | ||
<field name="code">outgoing</field> | ||
<field name="sequence_id" ref="stock.sequence_mrp_op"/> | ||
</record> | ||
|
||
<record id="outgoing_shipment_carrier_file" model="stock.picking"> | ||
<field name="picking_type_id" ref="base_delivery_carrier_files.outgoing_shipment_type_carrier_file"/> | ||
<field name="location_dest_id" ref="base_delivery_carrier_files.location_delivery_counter"/> | ||
<field name="carrier_id" ref="delivery.delivery_carrier"/> | ||
</record> | ||
|
||
<record id="outgoing_shipment_icecream_carrier_file" model="stock.move"> | ||
<field name="picking_id" ref="base_delivery_carrier_files.outgoing_shipment_icecream_carrier_file"/> | ||
<field name="product_id" ref="base_delivery_carrier_files.product_icecream"/> | ||
<field name="product_uom" ref="product.product_uom_kgm"/> | ||
<field name="product_uom_qty">130.0</field> | ||
<field name="location_id" ref="base_delivery_carrier_files.location_refrigerator"/> | ||
<field name="location_dest_id" ref="base_delivery_carrier_files.location_delivery_counter"/> | ||
</record> | ||
<!-- !record {model: stock.picking.type, id: outgoing_shipment_type_carrier_file_manual}: | ||
name: Outgoing Ice Cream | ||
code: outgoing | ||
sequence_id: stock.sequence_mrp_op | ||
- | ||
!record {model: stock.picking, id: outgoing_shipment_carrier_file_manual}: | ||
picking_type_id: outgoing_shipment_type_carrier_file_manual | ||
location_dest_id: location_delivery_counter | ||
carrier_id: delivery.free_delivery_carrier | ||
- | ||
!record {model: stock.move, id: outgoing_shipment_icecream_carrier_file_manual}: | ||
picking_id: outgoing_shipment_carrier_file_manual | ||
product_id: product_icecream | ||
product_uom: product.product_uom_kgm | ||
product_uom_qty: 130.0 | ||
location_id: location_refrigerator | ||
location_dest_id: location_delivery_counter --> | ||
</data> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters