diff --git a/addons/sale/test/advance_invoice.yml b/addons/sale/test/advance_invoice.yml index 28855a02237..870b3ec0428 100644 --- a/addons/sale/test/advance_invoice.yml +++ b/addons/sale/test/advance_invoice.yml @@ -1,49 +1,41 @@ - In order to test the sale module in the Open-ERP, I need to configure details regarding product & customer. - - I want to sell my mobile products to the customer with name Cleartrail + I am going to sell my Mobile products to the customer with name Cleartrail - - Creating an account.account.type record + I create View Account Type. - !record {model: account.account.type, id: account_account_type_view0}: close_method: none code: View name: View sign: 1 - - - - Creating an account.account.type record + I create Income Account Type. - !record {model: account.account.type, id: account_account_type_income0}: close_method: unreconciled code: Income name: Income sign: 1 - - - - Creating an account.account.type record + I create Expense Account Type. - !record {model: account.account.type, id: account_account_type_expense0}: close_method: unreconciled code: Expense name: Expense sign: 1 - - - - Creating an account.account.type record + I create Cash Account Type. - !record {model: account.account.type, id: account_account_type_cash0}: close_method: balance code: Cash name: Cash sign: 1 - - - - Creating an account.account record + I create Minimal Chart Account. - !record {model: account.account, id: account_account_minimalchart0}: code: '0' @@ -55,7 +47,7 @@ type: view user_type: account_account_type_view0 - - Creating an account.account record + I create Payable Account. - !record {model: account.account, id: account_account_payable1}: code: AP @@ -68,10 +60,8 @@ reconcile: true type: payable user_type: account_account_type_expense0 - - - - Creating an account.account record + I create Receivable Account. - !record {model: account.account, id: account_account_receivable0}: code: AR @@ -84,10 +74,8 @@ reconcile: true type: receivable user_type: account_account_type_income0 - - - - Creating an account.account record + I create Cash Account. - !record {model: account.account, id: account_account_cash0}: code: C @@ -99,10 +87,8 @@ parent_right: 7 type: other user_type: account_account_type_cash0 - - - - Creating an account.account record + I create Purchases Account. - !record {model: account.account, id: account_account_purchases0}: code: P @@ -115,7 +101,7 @@ type: other user_type: account_account_type_expense0 - - Creating an account.account record + I create Sales Account. - !record {model: account.account, id: account_account_sales0}: code: S @@ -127,10 +113,8 @@ parent_right: 11 type: other user_type: account_account_type_income0 - - - - Creating an account.journal record + I create Purchase Journal. - !record {model: account.journal, id: account_journal_purchasejournal0}: code: PUJ @@ -141,10 +125,8 @@ sequence_id: account.sequence_purchase_journal type: purchase view_id: account.account_journal_view - - - - Creating an account.journal record + I create Sale Journal. - !record {model: account.journal, id: account_journal_salejournal0}: code: SAJ @@ -155,10 +137,8 @@ sequence_id: account.sequence_sale_journal type: sale view_id: account.account_journal_view - - - - Creating an account.journal record + I create Bank Journal. - !record {model: account.journal, id: account_journal_bankjournal0}: code: BNK @@ -169,20 +149,16 @@ sequence_id: account.sequence_journal type: cash view_id: account.account_journal_bank_view - - - - Creating a ir.property record + I create ir.property for account payable. - !record {model: ir.property, id: ir_property_propertyaccountexpensecateg0}: company_id: base.main_company fields_id: account.field_res_partner_property_account_payable name: property_account_expense_categ value_reference: account.account,5 - - - - Creating a ir.property record + I create ir.property for account receivable. - !record {model: ir.property, id: ir_property_propertyaccountincomecateg0}: company_id: base.main_company @@ -190,59 +166,54 @@ name: property_account_income_categ value_reference: account.account,6 - - Creating a res.partner.category record + I create Partner category Customers. - !record {model: res.partner.category, id: res_partner_category_customers0}: name: Customers - - Creating an res.partner record + I create Cleartrail Customer. - !record {model: res.partner, id: res_partner_cleartrail0}: category_id: - res_partner_category_customers0 name: Cleartrail - - - - Creating an res.partner.address record + I create contact address for Cleartrail. - !record {model: res.partner.address, id: res_partner_address_1}: partner_id: res_partner_cleartrail0 street: onam plaza, 14 B palasia A B Road type: contact - - - - Creating an res.partner.address record + I create invoice address for Cleartrail. - !record {model: res.partner.address, id: res_partner_address_2}: partner_id: res_partner_cleartrail0 + street: sarda house 24 B palasia, A B Road type: invoice - - - - Creating an res.partner.address record + I create delivery address for Cleartrail. - !record {model: res.partner.address, id: res_partner_address_3}: partner_id: res_partner_cleartrail0 street: sangam house 15 B palasia, A B Road type: delivery - - Customer Cleartrail has specific instrument requirements regarding the stockable products + Customer Cleartrail has specific instrument requirement regarding the stockable products. - - Creating an product.category record + I define product category Mobile Products Sellable. - !record {model: product.category, id: product_category_allproductssellable0}: name: Mobile Products Sellable - - Creating an product.category record + I define product category Mobile Services. - !record {model: product.category, id: product_category_services0}: name: Mobile Services - - Creating an product.template record + I define LG Viewty Smart product template. - !record {model: product.template, id: product_template_lgviewtysmart0}: categ_id: product_category_allproductssellable0 @@ -258,7 +229,7 @@ uom_po_id: product.product_uom_unit - - Creating an product.product record + I define LG Viewty Smart product. - !record {model: product.product, id: product_product_lgviewtysmart0}: categ_id: product_category_allproductssellable0 @@ -278,7 +249,7 @@ uom_id: product.product_uom_unit uom_po_id: product.product_uom_unit - - Creating a sale.order record + I create a Sale Order for LG Viewty Smart for qty 500 having order_policy prepaid. - !record {model: sale.order, id: sale_order_so0}: date_order: '2010-05-03' @@ -305,7 +276,7 @@ shop_id: sale.shop - - Creating a sale.advance.payment.inv record + I use the Advance Payment wizard. - !record {model: sale.advance.payment.inv, id: sale_advance_payment_inv_0}: amount: 1000.0 diff --git a/addons/sale/test/prepaid_sale_order.yml b/addons/sale/test/prepaid_sale_order.yml index 881af754c5f..cd33b1bc73e 100644 --- a/addons/sale/test/prepaid_sale_order.yml +++ b/addons/sale/test/prepaid_sale_order.yml @@ -1,49 +1,41 @@ - In order to test the sale module in the Open-ERP, I need to configure details regarding product & customer. - - I want to sell my mobile products to the customer with name Cleartrail + I am going to sell my Mobile products to the customer with name Cleartrail - - Creating an account.account.type record + I create View Account Type. - !record {model: account.account.type, id: account_account_type_view0}: close_method: none code: View name: View sign: 1 - - - - Creating an account.account.type record + I create Income Account Type. - !record {model: account.account.type, id: account_account_type_income0}: close_method: unreconciled code: Income name: Income sign: 1 - - - - Creating an account.account.type record + I create Expense Account Type. - !record {model: account.account.type, id: account_account_type_expense0}: close_method: unreconciled code: Expense name: Expense sign: 1 - - - - Creating an account.account.type record + I create Cash Account Type. - !record {model: account.account.type, id: account_account_type_cash0}: close_method: balance code: Cash name: Cash sign: 1 - - - - Creating an account.account record + I create Minimal Chart Account. - !record {model: account.account, id: account_account_minimalchart0}: code: '0' @@ -55,7 +47,7 @@ type: view user_type: account_account_type_view0 - - Creating an account.account record + I create Payable Account. - !record {model: account.account, id: account_account_payable1}: code: AP @@ -68,10 +60,8 @@ reconcile: true type: payable user_type: account_account_type_expense0 - - - - Creating an account.account record + I create Receivable Account. - !record {model: account.account, id: account_account_receivable0}: code: AR @@ -84,10 +74,8 @@ reconcile: true type: receivable user_type: account_account_type_income0 - - - - Creating an account.account record + I create Cash Account. - !record {model: account.account, id: account_account_cash0}: code: C @@ -99,10 +87,8 @@ parent_right: 7 type: other user_type: account_account_type_cash0 - - - - Creating an account.account record + I create Purchases Account. - !record {model: account.account, id: account_account_purchases0}: code: P @@ -115,7 +101,7 @@ type: other user_type: account_account_type_expense0 - - Creating an account.account record + I create Sales Account. - !record {model: account.account, id: account_account_sales0}: code: S @@ -127,10 +113,8 @@ parent_right: 11 type: other user_type: account_account_type_income0 - - - - Creating an account.journal record + I create Purchase Journal. - !record {model: account.journal, id: account_journal_purchasejournal0}: code: PUJ @@ -141,10 +125,8 @@ sequence_id: account.sequence_purchase_journal type: purchase view_id: account.account_journal_view - - - - Creating an account.journal record + I create Sale Journal. - !record {model: account.journal, id: account_journal_salejournal0}: code: SAJ @@ -155,10 +137,8 @@ sequence_id: account.sequence_sale_journal type: sale view_id: account.account_journal_view - - - - Creating an account.journal record + I create Bank Journal. - !record {model: account.journal, id: account_journal_bankjournal0}: code: BNK @@ -169,20 +149,16 @@ sequence_id: account.sequence_journal type: cash view_id: account.account_journal_bank_view - - - - Creating a ir.property record + I create ir.property for account payable. - !record {model: ir.property, id: ir_property_propertyaccountexpensecateg0}: company_id: base.main_company fields_id: account.field_res_partner_property_account_payable name: property_account_expense_categ value_reference: account.account,5 - - - - Creating a ir.property record + I create ir.property for account receivable. - !record {model: ir.property, id: ir_property_propertyaccountincomecateg0}: company_id: base.main_company @@ -190,59 +166,54 @@ name: property_account_income_categ value_reference: account.account,6 - - Creating a res.partner.category record + I create Partner category Customers. - !record {model: res.partner.category, id: res_partner_category_customers0}: name: Customers - - Creating an res.partner record + I create Cleartrail Customer. - !record {model: res.partner, id: res_partner_cleartrail0}: category_id: - res_partner_category_customers0 name: Cleartrail - - - - Creating an res.partner.address record + I create contact address for Cleartrail. - !record {model: res.partner.address, id: res_partner_address_1}: partner_id: res_partner_cleartrail0 street: onam plaza, 14 B palasia A B Road type: contact - - - - Creating an res.partner.address record + I create invoice address for Cleartrail. - !record {model: res.partner.address, id: res_partner_address_2}: partner_id: res_partner_cleartrail0 + street: sarda house 24 B palasia, A B Road type: invoice - - - - Creating an res.partner.address record + I create delivery address for Cleartrail. - !record {model: res.partner.address, id: res_partner_address_3}: partner_id: res_partner_cleartrail0 street: sangam house 15 B palasia, A B Road type: delivery - - Customer Cleartrail has specific instrument requirements regarding the stockable products + Customer Cleartrail has specific instrument requirement regarding the stockable products. - - Creating an product.category record + I define product category Mobile Products Sellable. - !record {model: product.category, id: product_category_allproductssellable0}: name: Mobile Products Sellable - - Creating an product.category record + I define product category Mobile Services. - !record {model: product.category, id: product_category_services0}: name: Mobile Services - - Creating an product.template record + I define LG Viewty Smart product template. - !record {model: product.template, id: product_template_lgviewtysmart0}: categ_id: product_category_allproductssellable0 @@ -256,9 +227,8 @@ type: product uom_id: product.product_uom_unit uom_po_id: product.product_uom_unit - - - Creating an product.product record + I define LG Viewty Smart product. - !record {model: product.product, id: product_product_lgviewtysmart0}: categ_id: product_category_allproductssellable0 @@ -278,7 +248,7 @@ uom_id: product.product_uom_unit uom_po_id: product.product_uom_unit - - Creating a sale.order record + I create a Sale Order for LG Viewty Smart for qty 500 having order_policy prepaid. - !record {model: sale.order, id: sale_order_so1}: date_order: '2010-05-03' @@ -306,7 +276,7 @@ - - Performing a workflow action order_confirm on module sale.order + I confirm the sale order. - !workflow {model: sale.order, action: order_confirm, ref: sale_order_so1} - @@ -316,7 +286,7 @@ so = self.browse(cr, uid, ref("sale_order_so1")) assert so.invoice_ids, "Invoices has not been generated for sale_order_so1" - - Performing a workflow action invoice_open on module account.invoice + I open the Invoice for the SO. - !python {model: account.invoice}: | sale_order_obj = self.pool.get('sale.order') @@ -327,7 +297,7 @@ for invoice in invoice_ids: wf_service.trg_validate(uid, 'account.invoice',invoice.id,'invoice_open', cr) - - Creating a account.invoice.pay record + Creating a account invoice pay entry. - !record {model: account.invoice.pay, id: account_invoice_pay_tst1}: amount: 85000.0 @@ -336,7 +306,7 @@ name: tst period_id: account.period_5 - - Performing an osv_memory action wo_check on module account.invoice.pay + I pay the invoice. - !python {model: account.invoice.pay}: | sale_order_obj = self.pool.get('sale.order') @@ -347,7 +317,7 @@ - - Creating a account.invoice.pay.writeoff record + Creating an account invoice pay writeoff entry. - !record {model: account.invoice.pay.writeoff, id: account_invoice_pay_writeoff_0}: analytic_id: account.analytic_customers @@ -357,7 +327,7 @@ - - Performing an osv_memory action pay_and_reconcile_writeoff on module account.invoice.pay.writeoff + Pay and Reconcile the Invoice. - !python {model: account.invoice.pay.writeoff}: | sale_order_obj = self.pool.get('sale.order') @@ -374,7 +344,7 @@ so = self.browse(cr, uid, ref("sale_order_so1")) assert so.picking_ids,"Picking has not been generated for sale_order_so1" - - Creating a stock.partial.picking record + Products are delivered to the Cleartrail Customer. - !python {model: stock.picking }: | import time @@ -394,10 +364,10 @@ 'product_id': move.product_id.id, 'product_qty': move.product_qty, 'product_uom': move.product_uom.id, - } - self.do_partial(cr, uid, picking_id,partial_datas) + } + self.do_partial(cr, uid, [pick.id],partial_datas) - - I verify that picking order is in done state + I verify that picking order is in done state. - !python {model: stock.picking }: | sale_order_obj = self.pool.get('sale.order') diff --git a/addons/sale/test/shipping_manual_sale_order.yml b/addons/sale/test/shipping_manual_sale_order.yml index 5fe45fdba43..4bbbbb74dc5 100644 --- a/addons/sale/test/shipping_manual_sale_order.yml +++ b/addons/sale/test/shipping_manual_sale_order.yml @@ -1,49 +1,41 @@ - In order to test the sale module in the Open-ERP, I need to configure details regarding product & customer. - - I want to sell my mobile products to the customer with name Cleartrail + I am going to sell my Mobile products to the customer with name Cleartrail - - Creating an account.account.type record + I create View Account Type. - !record {model: account.account.type, id: account_account_type_view0}: close_method: none code: View name: View sign: 1 - - - - Creating an account.account.type record + I create Income Account Type. - !record {model: account.account.type, id: account_account_type_income0}: close_method: unreconciled code: Income name: Income sign: 1 - - - - Creating an account.account.type record + I create Expense Account Type. - !record {model: account.account.type, id: account_account_type_expense0}: close_method: unreconciled code: Expense name: Expense sign: 1 - - - - Creating an account.account.type record + I create Cash Account Type. - !record {model: account.account.type, id: account_account_type_cash0}: close_method: balance code: Cash name: Cash sign: 1 - - - - Creating an account.account record + I create Minimal Chart Account. - !record {model: account.account, id: account_account_minimalchart0}: code: '0' @@ -55,7 +47,7 @@ type: view user_type: account_account_type_view0 - - Creating an account.account record + I create Payable Account. - !record {model: account.account, id: account_account_payable1}: code: AP @@ -68,10 +60,8 @@ reconcile: true type: payable user_type: account_account_type_expense0 - - - - Creating an account.account record + I create Receivable Account. - !record {model: account.account, id: account_account_receivable0}: code: AR @@ -84,10 +74,8 @@ reconcile: true type: receivable user_type: account_account_type_income0 - - - - Creating an account.account record + I create Cash Account. - !record {model: account.account, id: account_account_cash0}: code: C @@ -99,10 +87,8 @@ parent_right: 7 type: other user_type: account_account_type_cash0 - - - - Creating an account.account record + I create Purchases Account. - !record {model: account.account, id: account_account_purchases0}: code: P @@ -115,7 +101,7 @@ type: other user_type: account_account_type_expense0 - - Creating an account.account record + I create Sales Account. - !record {model: account.account, id: account_account_sales0}: code: S @@ -127,10 +113,8 @@ parent_right: 11 type: other user_type: account_account_type_income0 - - - - Creating an account.journal record + I create Purchase Journal. - !record {model: account.journal, id: account_journal_purchasejournal0}: code: PUJ @@ -141,10 +125,8 @@ sequence_id: account.sequence_purchase_journal type: purchase view_id: account.account_journal_view - - - - Creating an account.journal record + I create Sale Journal. - !record {model: account.journal, id: account_journal_salejournal0}: code: SAJ @@ -155,10 +137,8 @@ sequence_id: account.sequence_sale_journal type: sale view_id: account.account_journal_view - - - - Creating an account.journal record + I create Bank Journal. - !record {model: account.journal, id: account_journal_bankjournal0}: code: BNK @@ -169,20 +149,16 @@ sequence_id: account.sequence_journal type: cash view_id: account.account_journal_bank_view - - - - Creating a ir.property record + I create ir.property for account payable. - !record {model: ir.property, id: ir_property_propertyaccountexpensecateg0}: company_id: base.main_company fields_id: account.field_res_partner_property_account_payable name: property_account_expense_categ value_reference: account.account,5 - - - - Creating a ir.property record + I create ir.property for account receivable. - !record {model: ir.property, id: ir_property_propertyaccountincomecateg0}: company_id: base.main_company @@ -190,59 +166,52 @@ name: property_account_income_categ value_reference: account.account,6 - - Creating a res.partner.category record + I create Partner category Customers. - !record {model: res.partner.category, id: res_partner_category_customers0}: name: Customers - - Creating an res.partner record + I create Cleartrail Customer. - !record {model: res.partner, id: res_partner_cleartrail0}: category_id: - res_partner_category_customers0 name: Cleartrail - - - - Creating an res.partner.address record + I create contact address for Cleartrail. - !record {model: res.partner.address, id: res_partner_address_1}: partner_id: res_partner_cleartrail0 street: onam plaza, 14 B palasia A B Road type: contact - - - - Creating an res.partner.address record + I create invoice address for Cleartrail. - !record {model: res.partner.address, id: res_partner_address_2}: partner_id: res_partner_cleartrail0 + street: sarda house 24 B palasia, A B Road type: invoice - - - - Creating an res.partner.address record + I create delivery address for Cleartrail. - !record {model: res.partner.address, id: res_partner_address_3}: partner_id: res_partner_cleartrail0 street: sangam house 15 B palasia, A B Road type: delivery - - Customer Cleartrail has specific instrument requirements regarding the stockable products + Customer Cleartrail has specific instrument requirement regarding the stockable products. - - Creating an product.category record + I define product category Mobile Products Sellable. - !record {model: product.category, id: product_category_allproductssellable0}: name: Mobile Products Sellable - - - - Creating an product.category record + I define product category Mobile Services. - !record {model: product.category, id: product_category_services0}: name: Mobile Services - - Creating an product.template record + I define LG Viewty Smart product template. - !record {model: product.template, id: product_template_newchocolateslidermobile0}: categ_id: product_category_allproductssellable0 @@ -256,9 +225,8 @@ type: product uom_id: product.product_uom_unit uom_po_id: product.product_uom_unit - - - Creating an product.product record + I define LG Viewty Smart product. - !record {model: product.product, id: product_product_newchocolateslidermobile0}: categ_id: product_category_allproductssellable0 @@ -277,10 +245,8 @@ type: product uom_id: product.product_uom_unit uom_po_id: product.product_uom_unit - - - - Creating a sale.order record + I create a Sale Order for LG Viewty Smart for qty 500 having order_policy manual. - !record {model: sale.order, id: sale_order_so0}: date_order: '2010-05-12' @@ -305,13 +271,11 @@ pricelist_id: product.list0 shop_id: sale.shop - - Performing a workflow action order_confirm on module sale.order + I confirm the Sale Order. - !workflow {model: sale.order, action: order_confirm, ref: sale_order_so0} - I click on Create Invoice button to create the invoice. -- - Performing a workflow action manual_invoice on module sale.order - !workflow {model: sale.order, action: manual_invoice, ref: sale_order_so0} - @@ -321,7 +285,7 @@ so = self.browse(cr, uid, ref("sale_order_so0")) assert so.invoice_ids, "Invoices has not been generated for sale_order_so0" - - Performing a workflow action invoice_open on module account.invoice + I open the Invoice for the SO. - !python {model: account.invoice}: | sale_order_obj = self.pool.get('sale.order') @@ -332,7 +296,7 @@ for invoice in invoice_ids: wf_service.trg_validate(uid, 'account.invoice',invoice.id,'invoice_open', cr) - - Creating a account.invoice.pay record + Creating a account invoice pay entry. - !record {model: account.invoice.pay, id: account_invoice_pay_tst0}: amount: 100000.0 @@ -341,7 +305,7 @@ name: test period_id: account.period_5 - - Performing an osv_memory action wo_check on module account.invoice.pay + I pay the invoice. - !python {model: account.invoice.pay}: | sale_order_obj = self.pool.get('sale.order') @@ -352,7 +316,7 @@ - - Creating a account.invoice.pay.writeoff record + Creating an account invoice pay writeoff entry. - !record {model: account.invoice.pay.writeoff, id: account_invoice_pay_writeoff_0}: analytic_id: account.analytic_customers @@ -362,7 +326,7 @@ - - Performing an osv_memory action pay_and_reconcile_writeoff on module account.invoice.pay.writeoff + Pay and Reconcile the Invoice. - !python {model: account.invoice.pay.writeoff}: | sale_order_obj = self.pool.get('sale.order') @@ -380,13 +344,13 @@ for invoice in invoice_ids: assert (invoice.state) =='paid', "Invoice for SO is not in done state." - - I will verify the picking associated with the sale order sale_order_so0 + I verify the picking associated with the sale order sale_order_so0. - !python {model: sale.order}: | so = self.browse(cr, uid, ref("sale_order_so0")) assert so.picking_ids,"Picking has not been generated for sale_order_so0" - - Creating a stock.partial.picking record + Products are delivered to the Cleartrail Customer. - !python {model: stock.picking }: | import time @@ -407,9 +371,9 @@ 'product_qty': move.product_qty, 'product_uom': move.product_uom.id, } - self.do_partial(cr, uid, picking_id,partial_datas) + self.do_partial(cr, uid, [pick.id],partial_datas) - - I verify that picking order is in done state + I verify that picking order is in done state. - !python {model: stock.picking }: | sale_order_obj = self.pool.get('sale.order')