Remaining products : - product_product_0 becomes service_order_01 - product_product_1b becomes service_cost_01 - product_product_43 becomes product_order_01 - product_product_47 becomes product_delivery_01 - prodcut_product becomes product_delivery_02 - Replace product_product_56 by service_delivery - Replace product_product_59 by consu_delivery_01 - Replace product_product_58 by consu_delivery_02 - Replace product_product_57 by consu_delivery_03 Removed products : - product_product_53, product_product_57, product_product_55, product_product_54, product_product_52, product_product_51, product_product_50, product_product_48, product_product_46, product_product_32, product_product_33, product_product_28, product_product_38, product_product_39, product_product_40, product_product_41, product_product_34, product_product_29, product_product_30, product_product_44, product_product_31, product_product_35, product_product_36, product_product_37, product_product_42, product_product_45, product_product_49, product_product_26, product_product_14, product_product_15, product_product_18, product_product_19, product_product_21, product_product_23 Removed corresponding binaries. Removed all Bill of Materials demo data, that were ridiculous and replace them by 2 bom: A complete computer, and a kit computer. Rewritten the tests accordingly. Fixed tests : - sale_mrp/test/cancellation_propagated.yml : The yaml ref function return a id, not a dictionnary - sale_stock/tests/test_sale_stock.py : The service product invoiced on the delivered quantity was in fact not invoiced on delivery on the test. As we are in sale_stock, Without timesheet, we manually set the delivered qty for the product serv_del. If we don't do this, the invoice will never be fully invoiced. - The pricelist rules choice is not based on the sequence anymore (Seems to be a bug, reported to online). By the way, I changed the product to avoid the overlap. - sale_mrp/test/sale_mrp.yml: The yaml ref function return a id, not a dictionnary - mrp : Rewritten the tests to be coherent with the new bom data
16 lines
521 B
YAML
16 lines
521 B
YAML
-
|
|
I create a procurement
|
|
-
|
|
!record {model: procurement.order, id: procurement_order0}:
|
|
company_id: base.main_company
|
|
name: Procurement Test
|
|
product_id: product.product_delivery_01
|
|
product_qty: 15.0
|
|
product_uom: product.product_uom_unit
|
|
-
|
|
I check that procurement order is in exception, as at first there isn't any suitable rule
|
|
-
|
|
!python {model: procurement.order}: |
|
|
proc_order = self.browse(cr, uid, ref('procurement_order0'), context=context)
|
|
assert proc_order.state == 'exception'
|