_ _columns _ _constraints _ _date_name def OpenERP Method : workflow _ _defaults def def copy def def create def def default_get def def fields_get def def fields_view_get def def name_get def def name_search def def on_change def def read def def search def def unlink def def write _ _description domain Field Attribute : domain help Field Attribute : help read Field Attribute : readonly req Field Attribute : required sel Field Attribute : select store Field Attribute : store fields fields.binary fields fields.boolean fields fields.char fields fields.date fields fields.datetime fields fields.float fields fields.function fields fields.integer fields fields.integer_big fields fields.many2many fields fields.many2one fields fields.one2many fields fields.property fields fields.reference fields fields.related fields fields.selection [def _select_data] fields fields.selection : [(draft, Draft)] states Field States fields fields.text fields fields.time _ _inherit _ _inherits _ _name def OpenERP Method : model ). All Rights Reserved # ${0:author.name@company.com} # # 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 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 . # ############################################################################## $1]]> tiny OpenERP License class OpenERP Class : model
''' ${4:fields} = { '$3': {'string': '${5:Label}', 'type': 'many2one', 'relation': 'res.company'}, } def ${6:_get_defaults}(self, cr, user, data, context): """ Returns a initial values required by wizard to preload @param cr: cursor to database @param user: id of current user @param data: dict that contains data about wizard, and internal variables @param context: context arguments, like lang, time zone @return: return a updated data """ #TODO: update data['form'] $0 return data['form'] def ${7:_do_duplicate}(self, cr, uid, data, context): """ Process a data @param cr: cursor to database @param user: id of current user @param data: dict that contains data about wizard, and internal variables @param context: context arguments, like lang, time zone @return: {} """ pool = pooler.get_pool(cr.dbname) return {} states = { 'init': { 'actions': [$6], 'result': {'type': 'form', 'arch': $2, 'fields': $4, 'state': (('end', 'Cancel'), ('${8:process}', 'Process'))}, }, '$8': { 'actions': [$7], 'result': {'type': 'state', 'state': 'end'}, }, } $1('${9:model.process}')]]>
class OpenERP Class : wizard
_ _order _ _parent_store _ _rec_name _ _sequence _ _sql_constraints _ _table states Wizard state : end states Wizard States : choice states Wizard States : form states Wizard States : print from from class New Class : python def New Function : python import Imports : model class OpenERP Class : model inherit import Imports : wizard import Imports : report get New Get Method : python set New Set Method : python def OpenERP Method : report def OpenERP Method : wizard doc doc string class OpenERP Class : model inherits class OpenERP Class : reports class OpenERP Class : osv memory ). All Rights Reserved # d$ # # 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 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 . # ############################################################################## $0]]> openerp OpenERP License encoding Encoding terp OpenERP 5 __terp__.py def fnct field # # WARNING: This program as such is intended to be used by professional # programmers who take the whole responsability of assessing all potential # consequences resulting from its eventual inadequacies and bugs # End users who are looking for a ready-to-use solution with commercial # garantees and support are strongly adviced to contract a Free Software # Service Company # # 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 2 # 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, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # ############################################################################## { 'name' : '', 'version' : '0.1', 'category' : '', 'description' : """ """, 'author' : '', 'website' : 'http://', 'license' : 'AGPL-3' 'depends' : [], 'init_xml' : [], 'demo_xml' : [], 'update_xml' : [], 'active': False, 'installable': True, }]]> openerp __openerp__.py # # WARNING: This program as such is intended to be used by professional # programmers who take the whole responsability of assessing all potential # consequences resulting from its eventual inadequacies and bugs # End users who are looking for a ready-to-use solution with commercial # garantees and support are strongly adviced to contract a Free Software # Service Company # # 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 2 # 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, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # ############################################################################## $0]]> init __init__.py pdb New snippet