From e4bee6afcbae9c82cc852ec771e7dca4c03d3320 Mon Sep 17 00:00:00 2001 From: Elvis Date: Thu, 4 Aug 2022 13:30:02 -0500 Subject: [PATCH] FIX --- liquidation.py | 9 --------- view/liquidation_form.xml | 4 ---- view/liquidation_tree.xml | 2 -- 3 files changed, 15 deletions(-) diff --git a/liquidation.py b/liquidation.py index 91fe702..8c4ade3 100644 --- a/liquidation.py +++ b/liquidation.py @@ -104,11 +104,6 @@ class Liquidation(Workflow, ModelSQL, ModelView): party_to_pay = fields.Many2One('party.party', 'Party to Pay', states=STATES) last_salary = fields.Numeric('Last Salary', states=STATES, digits=(16, 2)) - department = fields.Many2One('company.department', 'Department', - required=False, depends=['employee']) - project = fields.Many2One('project.work', 'Project', domain=[ - ('type', '=', 'project') - ]) @classmethod def __setup__(cls): @@ -161,10 +156,6 @@ class Liquidation(Workflow, ModelSQL, ModelView): def default_state(): return 'draft' - @fields.depends('employee', 'department') - def on_change_employee(self): - if self.employee and self.employee.department: - self.department = self.employee.department.id @staticmethod def default_currency(): diff --git a/view/liquidation_form.xml b/view/liquidation_form.xml index 67a8447..c06c009 100644 --- a/view/liquidation_form.xml +++ b/view/liquidation_form.xml @@ -20,8 +20,6 @@ this repository contains the full copyright notices and license terms. -->