|
67 | 67 | <field name="fixed_price">10.0</field>
|
68 | 68 | <field name="sequence">3</field>
|
69 | 69 | <field name="delivery_type">fixed</field>
|
70 |
| - <field name="product_id" ref="delivery.product_product_delivery_normal" /> |
| 70 | + <field name="product_id" ref="delivery.product_product_local_delivery" /> |
71 | 71 | <field name="partner_id" ref="test_carrier" />
|
72 | 72 | <field name="antt_code">Teste - Código ANTT</field>
|
73 | 73 | <field
|
|
78 | 78 | />
|
79 | 79 | </record>
|
80 | 80 |
|
81 |
| - <!-- Resource: stock.inventory --> |
| 81 | + <!-- Resource: stock.quant --> |
82 | 82 |
|
83 |
| - <record id="l10n_br_delivery_stock_inventory_0" model="stock.inventory"> |
84 |
| - <field name="name">Starting Inventory - l10n_br_delivery</field> |
85 |
| - <field name="state">confirm</field> |
86 |
| - </record> |
87 |
| - |
88 |
| - <!-- Resource: stock.inventory.line --> |
89 |
| - |
90 |
| - <record id="l10n_br_delivery_stock_inventory_line_1" model="stock.inventory.line"> |
| 83 | + <record id="l10n_br_delivery_stock_quant_1" model="stock.quant"> |
91 | 84 | <field name="product_id" ref="product.product_delivery_01" />
|
92 |
| - <field name="product_uom_id" ref="uom.product_uom_unit" /> |
93 |
| - <field name="inventory_id" ref="l10n_br_delivery_stock_inventory_0" /> |
94 |
| - <field name="product_qty">100</field> |
| 85 | + <field name="inventory_quantity">100</field> |
95 | 86 | <field name="location_id" ref="stock.stock_location_stock" />
|
96 | 87 | </record>
|
97 | 88 |
|
98 |
| - <record id="l10n_br_delivery_stock_inventory_line_2" model="stock.inventory.line"> |
| 89 | + <record id="l10n_br_delivery_stock_quant_2" model="stock.quant"> |
99 | 90 | <field name="product_id" ref="product.product_delivery_02" />
|
100 |
| - <field name="product_uom_id" ref="uom.product_uom_unit" /> |
101 |
| - <field name="inventory_id" ref="l10n_br_delivery_stock_inventory_0" /> |
102 |
| - <field name="product_qty">100</field> |
| 91 | + <field name="inventory_quantity">100</field> |
103 | 92 | <field name="location_id" ref="stock.stock_location_stock" />
|
104 | 93 | </record>
|
105 | 94 |
|
106 |
| - <function model="stock.inventory" name="action_validate"> |
107 |
| - <function |
108 |
| - eval="[[('state','=','draft'),('id', '=', ref('l10n_br_delivery_stock_inventory_0'))]]" |
109 |
| - model="stock.inventory" |
| 95 | + <function model="stock.quant" name="action_apply_inventory"> |
| 96 | + <function |
| 97 | + eval="[[('id', 'in', (ref('l10n_br_delivery_stock_quant_1'), |
| 98 | + ref('l10n_br_delivery_stock_quant_2'), |
| 99 | + ))]]" |
| 100 | + model="stock.quant" |
110 | 101 | name="search"
|
111 | 102 | />
|
112 | 103 | </function>
|
|
0 commit comments