Skip to content

Commit

Permalink
ADD demo for laposte
Browse files Browse the repository at this point in the history
  • Loading branch information
bealdav committed Jun 12, 2020
1 parent 045a67d commit 1faf608
Show file tree
Hide file tree
Showing 5 changed files with 137 additions and 0 deletions.
18 changes: 18 additions & 0 deletions delivery_roulier_laposte/demo/company.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">

<!-- Resource: res.company -->
<record id="base.main_company" model="res.company">
<field name="name">Akretion</field>
<field name="street">35B rue Montgolfier</field>
<field name="street2">TEST DU WEBSERVICE</field>
<field name="zip">69100</field>
<field name="city">Villeurbanne</field>
<field name="phone">04 99 99 99 99</field>
<field name="country_id" ref="base.fr"/>
<field name="laposte_support_city">Lyon PFC</field>
</record>

</data>
</openerp>
58 changes: 58 additions & 0 deletions delivery_roulier_laposte/demo/product.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">

<!-- product.product -->
<record id="product_colissimo_big" model="product.product">
<field name="name">colissimo 3.7 kg</field>
<field name="type">product</field>
<field name="uom_id">1</field>
<field name="qty_available">1000</field>
<field name="weight">3.7</field>
<field name="weight_net">3.2</field>
</record>
<record id="product_colissimo_small" model="product.product">
<field name="name">colissimo 1.3 kg</field>
<field name="type">product</field>
<field name="uom_id">1</field>
<field name="qty_available">1000</field>
<field name="weight">1.3</field>
<field name="weight_net">1.1</field>
</record>


<!-- Resource: stock.inventory -->
<record id="stock_inventory_coliposte" model="stock.inventory">
<field name="name">ColiPoste Inventory</field>
</record>


<!--Resource: stock.inventory.line -->
<record id="stock_inventory_line_coliposte1" model="stock.inventory.line">
<field name="product_id" ref="product_colissimo_big"/>
<field name="product_uom_id" ref="product.product_uom_unit"/>
<field name="inventory_id" ref="stock_inventory_coliposte"/>
<field name="product_qty">1000.0</field>
<field name="location_id" ref="stock.stock_location_stock"/>
</record>

<record id="stock_inventory_line_coliposte2" model="stock.inventory.line">
<field name="product_id" ref="product_colissimo_small"/>
<field name="product_uom_id" ref="product.product_uom_unit"/>
<field name="inventory_id" ref="stock_inventory_coliposte"/>
<field name="product_qty">1000.0</field>
<field name="location_id" ref="stock.stock_location_stock"/>
</record>

<function model="stock.inventory" name="prepare_inventory">
<function eval="[[('id', '=', ref('stock_inventory_coliposte'))]]"
model="stock.inventory" name="search"/>
</function>

<function model="stock.inventory" name="prepare_inventory">
<function eval="[[('id', '=', ref('stock_inventory_coliposte'))]]"
model="stock.inventory" name="search"/>
</function>

</data>
</openerp>
27 changes: 27 additions & 0 deletions delivery_roulier_laposte/demo/res.partner.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
id,name,country_id:id,street,street2,zip,city,phone,mobile,use_b2c_info,door_code,door_code2,intercom,email
res_partner_dih,Alain DIH,base.fr,10 rue de la manche,immeuble 1,59001,Béthune,01.55.69.89.67,06.78.71.96.64,t,27753,15422,23091,[email protected]
res_partner_diss,Amar DISSOIR,base.fr,41 bd Saint Jacques,immeuble 2,75014,Paris,01.55.69.89.79,06.78.71.96.76,t,34479,22148,29817,[email protected]
res_partner_voj,Andy VOJHANBON,base.fr,150 avenue des champs élysées,immeuble 3,75008,Paris,01.55.69.89.73,06.78.71.96.70,t,31116,18785,26454,[email protected]
res_partner_honnete,Camille HONNETE,base.fr,16 r Letort,immeuble 4,75018,Paris,01.55.69.89.83,06.78.71.96.80,t,36721,24390,32059,[email protected]
res_partner_honxa,Cécile HONXA,base.fr,15 rue du basket,immeuble 5,87100,Limoges,01.55.69.89.69,06.78.71.96.66,t,28874,16543,24212,[email protected]
res_partner_bi,César BI,base.fr,39 av Champs Elysées,immeuble 6,75008,Paris,01.55.69.89.77,06.78.71.96.74,t,33358,21027,28696,[email protected]
res_partner_dubol,Ella DUBOL,base.fr,25 r Oscar Roty,immeuble 7,75015,Paris,01.55.69.89.89,06.78.71.96.86,t,40084,27753,35422,[email protected]
res_partner_debord,Elvire DEBORD,base.fr,3 r Dancourt,immeuble 8,75018,Paris,01.55.69.89.75,06.78.71.96.72,t,32237,19906,27575,[email protected]
res_partner_vencouran,Harry VENCOURAN,base.fr,148 av Félix Faure,immeuble 9,75015,Paris,01.55.69.89.93,06.78.71.96.90,t,42326,29995,37664,[email protected]
res_partner_aze,Hélène AZE,base.fr,270 r Fbg Saint Antoine,immeuble 10,75012,Paris,01.55.69.89.85,06.78.71.96.82,t,37842,25511,33180,[email protected]
res_partner_nhastic0,Jim NHASTIC,base.fr,150 rue Vauban,immeuble 11,69001,Lyon,01.55.69.89.63,06.78.71.96.60,t,25511,13180,20849,[email protected]
res_partner_ajum,Karl AJUMIDE,base.be,25 r Caumartin,immeuble 12,1070,Anderlecht,‘+32678719668,‘+32478719669,t,38963,26632,34301,[email protected]
res_partner_cley,Lara CLEYTE,base.fr,15 avenue de France,immeuble 13,74001,Annecy,01.55.69.89.71,06.78.71.96.68,t,29995,17664,25333,[email protected]
res_partner_baral,Lenny BARALAIR,base.fr,7 r de Berri,immeuble 14,75008,Paris,01.55.69.89.91,06.78.71.96.88,t,41205,28874,36543,[email protected]
res_partner_camet0,Léon CAMET,base.mq,3 rue d'à côté,immeuble 15,97200,Fort de France,01.55.69.89.61,06.78.71.96.58,t,24390,12059,19728,[email protected]
res_partner_pancuir,Leslie PANCUIR,base.es,13 r Odessa,immeuble 16,28455,Madrid,01.55.69.89.81,06.78.71.96.78,t,35600,23269,30938,[email protected]
res_partner_stou,Marie STOURNE,base.fr,9 r Vauvilliers,immeuble 17,75001,Paris,01.55.69.89.97,06.78.71.96.94,t,44568,32237,39906,[email protected]
res_partner_austin0,Mini AUSTIN,base.au,6 perth avenue Yarralula,immeuble 18,2000,Sydney,61 3 1234 5678,06 73 12 11 11,t,,,,[email protected]
res_partner_hamploye0,Paul HAMPLOYE,base.fr,13 rue de l'impasse,immeuble 19,13001,Marseille,01.55.69.89.65,06.78.71.96.62,t,26632,14301,21970,[email protected]
res_partner_valyi0,Raphaël VALYI,base.br,"Rua Paulo Dias, 586",immeuble 20,18825,Aluminio,123 456-7890,06.55.78.90,t,47545,79666,87886,[email protected]
res_partner_bif,Rose BIF,base.fr,78 Bis av Marceau,immeuble 21,75008,Paris,01.55.69.89.99,06.78.71.96.96,t,45689,33358,41027,[email protected]
res_partner_beau0,Sebastian BEAU,base.co,Avenida Calle 63,immeuble 22,6995,Bogota,437.706,06.99.99.33.33,t,45122,78126,78456,[email protected]
res_partner_anht0,Serge ANHT,base.gp,rue de l'avenir,immeuble 23,97110,Pointe-à-Pitre,735 987 2222,06 87 22 72 82,t,45122,78126,78456,[email protected]
res_partner_romanisky0,Sylvie ROMANISKY,base.hu,Ambassade de France,"Lendway ut ca 27,",1062,Budapest,0036 1 438 8080,06 51 438 8080,t,45122,78126,78456,[email protected]
res_partner_mq_stou,Marie STOURHNE,base.mq,rue germain,bla bla,97212,Saint Joseph,01.55.69.89.97,06.78.71.96.94,t,44568,32237,39906,[email protected]
res_partner_gp_ahjum,Karl AHJUMIDE,base.gp,7 r de Berri,bla bla,97120,Saint Claude,01.55.69.89.87,06.78.71.96.84,t,38963,26632,34301,[email protected]
17 changes: 17 additions & 0 deletions delivery_roulier_laposte/demo/stock.move.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
id,picking_id:id,product_uom_qty,product_id:id,name,product_uom:id,location_id:id,location_dest_id:id
stock_move_colissimo_nhas111b,stock_picking_colissimo_DOM_nhas1,1,delivery_roulier.product_dummy_small,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
stock_move_colissimo_karl,stock_picking_colissimo_DOM_karl,2,delivery_roulier.product_dummy_big,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
stock_move_colissimo_hamp131b,stock_picking_colissimo_DOM_hamp1,1,delivery_roulier.product_dummy_big,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
stock_move_colissimo_nhas111,stock_picking_colissimo_DOS_nhas1,1,delivery_roulier.product_dummy_small,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
stock_move_colissimo_nhas221,stock_picking_colissimo_DOS_nhas2,2,delivery_roulier.product_dummy_small,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
stock_move_colissimo_pancuir,stock_picking_colissimo_DOS_pancuir,1,delivery_roulier.product_dummy_big,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
stock_move_colissimo_hamp131,stock_picking_colissimo_DOS_hamp1,1,delivery_roulier.product_dummy_big,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
stock_move_colissimo_hamp231,stock_picking_colissimo_DOS_hamp2,2,delivery_roulier.product_dummy_normal,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
stock_move_colissimo_anht331,stock_picking_colissimo_COM_anht1,3,delivery_roulier.product_dummy_normal,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
stock_move_colissimo_anht332,stock_picking_colissimo_COM_camet1,2,delivery_roulier.product_dummy_normal,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
stock_move_colissimo_cds_anht2,stock_picking_colissimo_CDS_anht0,3,delivery_roulier.product_dummy_big,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
stock_move_colissimo_cds_stou1,stock_picking_colissimo_CDS_stou1,1,delivery_roulier.product_dummy_small,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
stock_move_colissimo_austin231,stock_picking_colissimo_COLI_valyi,2,delivery_roulier.product_dummy_small,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
stock_move_colissimo_austin242,stock_picking_colissimo_COLI_austin,4,delivery_roulier.product_dummy_normal,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
stock_move_colissimo_beau212,stock_picking_colissimo_COLI_beau,1,delivery_roulier.product_dummy_big,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
stock_move_colissimo_romanisky131,stock_picking_colissimo_COLI_romanisky,1,delivery_roulier.product_dummy_small,_,product.product_uom_unit,stock.stock_location_stock,stock.stock_location_customers
17 changes: 17 additions & 0 deletions delivery_roulier_laposte/demo/stock.picking.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
id,partner_id:id,option_ids:id,carrier_id:id,picking_type_id:id,name,laposte_recommande,laposte_insurance
stock_picking_colissimo_DOM_hamp1,res_partner_hamploye0,DOM_laposte_carrier_opt_tmpl_NM,delivery_carrier_DOM,stock.picking_type_out,C DOM opt NM,,
stock_picking_colissimo_DOM_karl,res_partner_ajum,,delivery_carrier_DOM,stock.picking_type_out,C DOM anderlecht,,
stock_picking_colissimo_DOM_nhas1,res_partner_nhastic0,,delivery_carrier_DOM,stock.picking_type_out,C DOM,,
stock_picking_colissimo_DOS_nhas1,res_partner_nhastic0,DOS_laposte_carrier_opt_tmpl_COD,delivery_carrier_DOS,stock.picking_type_out,C DOS opt COD,,
stock_picking_colissimo_DOS_nhas2,res_partner_nhastic0,DOS_laposte_carrier_opt_tmpl_INS,delivery_carrier_DOS,stock.picking_type_out,C DOS opt ASS,,30000
stock_picking_colissimo_DOS_hamp1,res_partner_hamploye0,"DOS_laposte_carrier_opt_tmpl_INS,DOS_laposte_carrier_opt_tmpl_COD",delivery_carrier_DOS,stock.picking_type_out,C DOS opt ASS / COD,,150000
stock_picking_colissimo_DOS_hamp2,res_partner_hamploye0,DOS_laposte_carrier_opt_tmpl_INS,delivery_carrier_DOS,stock.picking_type_out,C DOS opt recommandé,R2,
stock_picking_colissimo_DOS_pancuir,res_partner_pancuir,"DOS_laposte_carrier_opt_tmpl_INS,DOS_laposte_carrier_opt_tmpl_ACK",delivery_carrier_DOS,stock.picking_type_out,C DOS opt ASS Madrid,,45000
stock_picking_colissimo_COM_anht1,res_partner_anht0,,delivery_carrier_COM,stock.picking_type_out,C COM,,
stock_picking_colissimo_COM_camet1,res_partner_camet0,CDS_laposte_carrier_opt_tmpl_FCR,delivery_carrier_COM,stock.picking_type_out,C COM FTD,,
stock_picking_colissimo_CDS_anht0,res_partner_anht0,"CDS_laposte_carrier_opt_tmpl_FCR,CDS_laposte_carrier_opt_tmpl_ACK",delivery_carrier_CDS,stock.picking_type_out,C CDS FTD / AR,,
stock_picking_colissimo_CDS_stou1,res_partner_mq_stou,"CDS_laposte_carrier_opt_tmpl_FCR,CDS_laposte_carrier_opt_tmpl_ACK,CDS_laposte_carrier_opt_tmpl_INS",delivery_carrier_CDS,stock.picking_type_out,C CDS FTD / ASS / AR,,90000
stock_picking_colissimo_COLI_valyi,res_partner_valyi0,COLI_laposte_carrier_opt_tmpl_NM,delivery_carrier_COLI,stock.picking_type_out,C0024,,
stock_picking_colissimo_COLI_austin,res_partner_austin0,COLI_laposte_carrier_opt_tmpl_NM,delivery_carrier_COLI,stock.picking_type_out,C0025,,
stock_picking_colissimo_COLI_beau,res_partner_beau0,,delivery_carrier_COLI,stock.picking_type_out,C0026,,
stock_picking_colissimo_COLI_romanisky,res_partner_romanisky0,COLI_laposte_carrier_opt_tmpl_NM,delivery_carrier_COLI,stock.picking_type_out,C COLI opt NM,,

0 comments on commit 1faf608

Please sign in to comment.