diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-18 13:13:08 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-18 13:13:08 +0700 |
| commit | 18404c79a875afc31831ddd1ae2a419536216eb2 (patch) | |
| tree | 0e0a532e2b1081820f131b8034adb9aa55a5b0b2 /indoteknik_custom/models/account_move.py | |
| parent | 001aa772a6ff8f7eb1cf1688480f32a7d82ec45d (diff) | |
fix change request multi create uangmuka pembelian
Diffstat (limited to 'indoteknik_custom/models/account_move.py')
| -rw-r--r-- | indoteknik_custom/models/account_move.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py index 3df6d888..0ba25ad8 100644 --- a/indoteknik_custom/models/account_move.py +++ b/indoteknik_custom/models/account_move.py @@ -62,7 +62,6 @@ class AccountMove(models.Model): so_delivery_amt = fields.Char(string="SO Delivery Amount", compute='compute_so_shipping_paid_by') flag_delivery_amt = fields.Boolean(string="Flag Delivery Amount", compute='compute_flag_delivery_amt') nomor_kwitansi = fields.Char(string="Nomor Kwitansi") - po_id = fields.Many2one('purchase.order', string='purchase Order') @api.model def create(self, vals): @@ -168,7 +167,7 @@ class AccountMove(models.Model): res = super(AccountMove, self).button_cancel() if self.move_type == 'entry': po = self.env['purchase.order'].search([ - ('invoice_ids', 'in', [self.id]) + ('move_id', 'in', [self.id]) ]) for order in po: |
