mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
new api for res.users
This commit is contained in:
@@ -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)]",
|
||||||
}
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user