ResPartner.rb

Path: lib/Helpers/ResPartner.rb
Last Update: Fri Mar 05 15:18:05 +0100 2010

OERPScenario, OpenERP Functional Tests Author Nicolas Bessi & Joel Grand-Guillaume 2009 Copyright Camptocamp SA

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 Afero of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.

Required files

pp   rubygems   ooor  

Methods

Public Class methods

Return the first encountred supplier with at least one address Input :

 -

Return

 - The found ResPartner as a instance of the class¨

Usage Example: part = ResPartner.get_supplier({:name => ‘toto’, :type=>’supplier’})

[Validate]