From 0b951b5dcf699cb3df36f840601bb8f1d3816482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 4 Dec 2008 23:23:24 +0100 Subject: [PATCH] Add domain on company of ir.sequence to respect rules --- company.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/company.py b/company.py index eb732659e7..125ba5372f 100644 --- a/company.py +++ b/company.py @@ -151,7 +151,8 @@ Property() class Sequence(OSV): _name = 'ir.sequence' - company = fields.Many2One('company.company', 'Company') + company = fields.Many2One('company.company', 'Company', + domain="[('id', '=', context.get('company', False))]") def __init__(self): super(Sequence, self).__init__()