Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3473 Prikazi

Hello again guys!

I try to import these two records. The first record needs the second one. The second record needs the first one...

How to deal with this? Should I import one of these records in two shots?


<record id="stock_lapagept.pick_receipts_pt" model="stock.picking.type">

      <field name="name">Receipts - PT picking - 2</field>

      <field name="code">incoming</field>

      <field name="sequence_id" ref="stock_lapagept.pick_seq_receipts_pt" />

      <field name="warehouse_id" ref="stock_lapagept.warehouse_pt" />

      <field name="return_picking_type_id" ref="stock_lapagept.pick_delivery_orders_pt" />

      <field name="default_location_src_id" ref="stock_lapagept.suppliers_pt" />

      <field name="default_location_dest_id" ref="stock_lapagept.etagere_sous_sol_pt" />

</record>

<record id="stock_lapagept.pick_delivery_orders_pt" model="stock.picking.type">

      <field name="name">Delivery orders - PT picking - 2</field>

      <field name="code">outgoing</field>

      <field name="sequence_id" ref="stock_lapagept.pick_seq_delivery_orders_pt" />

      <field name="warehouse_id" ref="stock_lapagept.warehouse_pt" />

      <field name="return_picking_type_id" ref="stock_lapagept.pick_receipts_pt" />

      <field name="default_location_src_id" ref="stock_lapagept.etagere_sous_sol_pt" />

      <field name="default_location_dest_id" ref="stock_lapagept.customers_pt" />

</record>


I look forward to seeing your answer... Interesting case here.

Thanks


Avatar
Opusti
Avtor Best Answer

This way works. BUT IS THIS A GOOD PRACTICE to separate a record like this in two shot?????


<record id="stock_lapagept.pick_receipts_pt" model="stock.picking.type">

      <field name="name">Receipts - PT picking - 2</field>

      <field name="code">incoming</field>

      <field name="sequence_id" ref="stock_lapagept.pick_seq_receipts_pt" />

      <field name="warehouse_id" ref="stock_lapagept.warehouse_pt" />

      <field name="default_location_src_id" ref="stock_lapagept.suppliers_pt" />

      <field name="default_location_dest_id" ref="stock_lapagept.etagere_sous_sol_pt" />

</record>

<record id="stock_lapagept.pick_delivery_orders_pt" model="stock.picking.type">

      <field name="name">Delivery orders - PT picking - 2</field>

      <field name="code">outgoing</field>

      <field name="sequence_id" ref="stock_lapagept.pick_seq_delivery_orders_pt" />

      <field name="warehouse_id" ref="stock_lapagept.warehouse_pt" />

      <field name="return_picking_type_id" ref="stock_lapagept.pick_receipts_pt" />

      <field name="default_location_src_id" ref="stock_lapagept.etagere_sous_sol_pt" />

      <field name="default_location_dest_id" ref="stock_lapagept.customers_pt" />

</record>

<record id="stock_lapagept.pick_receipts_pt" model="stock.picking.type">

      <field name="return_picking_type_id" ref="stock_lapagept.pick_delivery_orders_pt" />

</record>

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
jul. 24
2692
1
feb. 24
2805
0
dec. 22
2379
1
okt. 23
1897
1
mar. 22
10044