diff --git a/yuthon_official/models/yuthon_official.py b/yuthon_official/models/yuthon_official.py index c464ed763..e744ba4f0 100644 --- a/yuthon_official/models/yuthon_official.py +++ b/yuthon_official/models/yuthon_official.py @@ -26,7 +26,7 @@ class YuthonOfficial(models.Model): main_flats_ids = fields.Many2many( 'main.flats', 'yuthon_official_main_flats_rel', - 'official_id' + 'official_id', 'flat_id', string="主送单位" ) diff --git a/yuthon_salary/security/salary_security_rule.xml b/yuthon_salary/security/salary_security_rule.xml index a91f017d8..07be11abe 100644 --- a/yuthon_salary/security/salary_security_rule.xml +++ b/yuthon_salary/security/salary_security_rule.xml @@ -1,5 +1,10 @@ + + 薪资归档多公司 + + [('company_id', 'in', company_ids)] + 职级类型多公司