changeset 556674c5b075 in modules/company:default details: https://hg.tryton.org/modules/company?cmd=changeset;node=556674c5b075 description: Display company in status when main company has children
As soon as the main company has children, we must notice the user on which one he is. The companies field contain only the children of the current company. issue9403 review311921002 diffstat: res.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 7e0eb53ff51d -r 556674c5b075 res.py --- a/res.py Sat Jun 27 00:55:34 2020 +0200 +++ b/res.py Mon Aug 03 00:01:42 2020 +0200 @@ -82,7 +82,7 @@ and len(list(filter(same_company, self.employees))) > 1): status += ' - %s' % self.employee.rec_name if self.company: - if len(self.companies) > 1: + if self.main_company.childs: status += ' - %s' % self.company.rec_name status += ' [%s]' % self.company.currency.code return status