Skip to content

Commit

Permalink
tests on v9
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Nov 23, 2015
1 parent a8f4f2e commit e1adc3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/ooor_spec.rb
Expand Up @@ -201,6 +201,7 @@
end
end

if OOOR_ODOO_VERSION != '9.0'
it "should read many2many relations" do
s = SaleOrder.find(:first)
s.order_policy = 'manual'
Expand All @@ -209,6 +210,7 @@
s.wkf_action('manual_invoice')
SaleOrder.find(:first).order_line[1].invoice_lines.should be_kind_of(Array)
end
end

it "should read polymorphic references" do
IrUiMenu.find(:first, :domain => [['name', '=', 'Customers'], ['parent_id', '!=', false]]).action.should be_kind_of(IrActionsAct_window)
Expand All @@ -222,11 +224,13 @@
p.name.should == "testProduct1"
end

if OOOR_ODOO_VERSION != '9.0'
it "should properly change value when m2o is set" do
p = ProductProduct.find(:first)
p.categ_id = 7
p.categ_id.id.should == 7
end
end

it "should be able to create a product" do
p = ProductProduct.create(:name => "testProduct1", :categ_id => 1)
Expand Down

0 comments on commit e1adc3f

Please sign in to comment.