Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3474 Visualizzazioni

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
Abbandona
Autore Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
lug 24
2692
1
feb 24
2805
0
dic 22
2379
1
ott 23
1897
1
mar 22
10044