-
-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! [FIX] base_delivery_carrier_files: more fixes on migration to …
…10.0
- Loading branch information
1 parent
f815316
commit 947cf64
Showing
9 changed files
with
122 additions
and
238 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 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,89 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
|
||
<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> | ||
|
||
<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="name">Refrigerator</field> | ||
<field name="usage">internal</field> | ||
</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="stock.product_icecream" model="product.product"> | ||
<field name="property_stock_inventory" ref="base_delivery_carrier_files.location_opening"/> | ||
</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_id" ref="base_delivery_carrier_files.location_refrigerator"/> | ||
<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="name">Outgoing Ice Cream Move</field> | ||
<field name="picking_id" ref="base_delivery_carrier_files.outgoing_shipment_carrier_file"/> | ||
<field name="product_id" ref="stock.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 id="outgoing_shipment_carrier_file_manual" model="stock.picking"> | ||
<field name="picking_type_id" ref="base_delivery_carrier_files.outgoing_shipment_type_carrier_file"/> | ||
<field name="location_id" ref="base_delivery_carrier_files.location_refrigerator"/> | ||
<field name="location_dest_id" ref="base_delivery_carrier_files.location_delivery_counter"/> | ||
<field name="carrier_id" ref="delivery.free_delivery_carrier"/> | ||
</record> | ||
|
||
<record id="outgoing_shipment_icecream_carrier_file" model="stock.move"> | ||
<field name="name">Outgoing Ice Cream Move Manual</field> | ||
<field name="picking_id" ref="base_delivery_carrier_files.outgoing_shipment_carrier_file_manual"/> | ||
<field name="product_id" ref="stock.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> | ||
|
||
</odoo> |
104 changes: 0 additions & 104 deletions
104
base_delivery_carrier_files/test/carrier_file_test_data.xml
This file was deleted.
Oops, something went wrong.
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
22 changes: 9 additions & 13 deletions
22
base_delivery_carrier_files_document/demo/carrier_file_demo.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 |
---|---|---|
@@ -1,19 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<data noupdate="1"> | ||
|
||
<!-- Carrier File --> | ||
<record id="base_delivery_carrier_files.delivery_carrier_file" model="delivery.carrier.file"> | ||
<field name="name">Automatic carrier file</field> | ||
<field name="write_mode">document</field> | ||
<field name="type">generic</field> | ||
</record> | ||
<!-- Carrier File --> | ||
<record id="base_delivery_carrier_files.delivery_carrier_file" model="delivery.carrier.file"> | ||
<field name="write_mode">document</field> | ||
<field name="type">generic</field> | ||
</record> | ||
|
||
<record id="base_delivery_carrier_files.delivery_carrier_file_manual" model="delivery.carrier.file"> | ||
<field name="name">Manual carrier file</field> | ||
<field name="write_mode">document</field> | ||
<field name="type">generic</field> | ||
</record> | ||
<record id="base_delivery_carrier_files.delivery_carrier_file_manual" model="delivery.carrier.file"> | ||
<field name="write_mode">document</field> | ||
<field name="type">generic</field> | ||
</record> | ||
|
||
</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
Oops, something went wrong.