diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-02-19 14:01:44 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-02-19 14:01:44 +0700 |
| commit | 66901cd03a1494e6c84893e14083dcd1fbe737a5 (patch) | |
| tree | a77fd0004f8e01834ade12d4508edbf76be1e6ff /indoteknik_custom/models/account_move_line.py | |
| parent | 62636c80dcc2078eed18810e7958f41fd5b13fdc (diff) | |
fix bug account move
Diffstat (limited to 'indoteknik_custom/models/account_move_line.py')
| -rw-r--r-- | indoteknik_custom/models/account_move_line.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/account_move_line.py b/indoteknik_custom/models/account_move_line.py index 6b394da3..7c95d4ef 100644 --- a/indoteknik_custom/models/account_move_line.py +++ b/indoteknik_custom/models/account_move_line.py @@ -28,6 +28,6 @@ class AccountMoveLine(models.Model): for vals in vals_list: if 'move_id' in vals: move = self.env['account.move'].browse(vals['move_id']) - if move.move_type == 'entry': + if move.move_type == 'entry' and move.is_hr == True: vals['name'] = move.ref return super().create(vals_list)
\ No newline at end of file |
