new api for res.users

This commit is contained in:
Guewen Baconnier
2014-11-17 14:15:15 +01:00
committed by Graeme Gellatly
parent a7aa6cbccb
commit fc3900b110

View File

@@ -18,15 +18,15 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
############################################################################## ##############################################################################
from openerp.osv import orm, fields from openerp import models, fields
class ResUsers(orm.Model): class ResUsers(models.Model):
_inherit = "res.users" _inherit = "res.users"
_columns = { printer_tray_id = fields.Many2one(
'printer_tray_id': fields.many2one( comodel_name='printing.tray',
'printing.tray', 'Default Printer Paper Source', string='Default Printer Paper Source',
domain="[('printer_id', '=', printing_printer_id)]"), domain="[('printer_id', '=', printing_printer_id)]",
} )