diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-02-19 09:42:12 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-02-19 09:42:12 +0700 |
| commit | bf61388fb16a59dcf954cd288c830f00c62efee5 (patch) | |
| tree | 42222c0e8bae3e925099cf272db34a25790667d2 | |
| parent | 45f6f270ae76b5e2d811f4ef04e9b64ba5b7f143 (diff) | |
fix error
| -rw-r--r-- | indoteknik_custom/models/account_move_line.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/indoteknik_custom/models/account_move_line.py b/indoteknik_custom/models/account_move_line.py index 6b394da3..a4386157 100644 --- a/indoteknik_custom/models/account_move_line.py +++ b/indoteknik_custom/models/account_move_line.py @@ -21,13 +21,4 @@ class AccountMoveLine(models.Model): if account.account_id.code and account.account_id.code[0] in ['6', '7']: account.is_required = True else: - account.is_required = False - - @api.model_create_multi - def create(self, vals_list): - for vals in vals_list: - if 'move_id' in vals: - move = self.env['account.move'].browse(vals['move_id']) - if move.move_type == 'entry': - vals['name'] = move.ref - return super().create(vals_list)
\ No newline at end of file + account.is_required = False
\ No newline at end of file |
