diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-02-25 14:01:15 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-02-25 14:01:15 +0700 |
| commit | 6a5a2a2666c33ffafd610df882491d86918468bb (patch) | |
| tree | b61d4672169aa78a0bee9aae319af68768a2b6ee /indoteknik_custom/models/account_move.py | |
| parent | 141bfb3a32e73d5b8557a70867d957d5ed3d485b (diff) | |
| parent | a24d7b2a21ff24e31eef77e2032a861b7eb13e31 (diff) | |
Merge branch 'odoo-production' into CR/renca-commision
# Conflicts:
# indoteknik_custom/models/commision.py
# indoteknik_custom/views/customer_commision.xml
Diffstat (limited to 'indoteknik_custom/models/account_move.py')
| -rw-r--r-- | indoteknik_custom/models/account_move.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py index 7760c69d..b2ac47c2 100644 --- a/indoteknik_custom/models/account_move.py +++ b/indoteknik_custom/models/account_move.py @@ -64,6 +64,7 @@ class AccountMove(models.Model): nomor_kwitansi = fields.Char(string="Nomor Kwitansi") other_subtotal = fields.Float(string="Other Subtotal", compute='compute_other_subtotal') other_taxes = fields.Float(string="Other Taxes", compute='compute_other_taxes') + is_hr = fields.Boolean(string="Is HR?", default=False) def _update_line_name_from_ref(self): """Update all account.move.line name fields with ref from account.move""" @@ -114,7 +115,7 @@ class AccountMove(models.Model): def create(self, vals): vals['nomor_kwitansi'] = self.env['ir.sequence'].next_by_code('nomor.kwitansi') or '0' result = super(AccountMove, self).create(vals) - result._update_line_name_from_ref() + # result._update_line_name_from_ref() return result def compute_so_shipping_paid_by(self): |
