summaryrefslogtreecommitdiff
path: root/fixco_custom/models/purchase_order.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-09-12 15:00:12 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-09-12 15:00:12 +0700
commitbb49da69c2af4d32c6bbc99cbc74e86e1f695424 (patch)
treedef59116d071d38a712b925480ee1ab94d7e21c5 /fixco_custom/models/purchase_order.py
parentf1b119641b64b77427caa5199d9ce04e5c965c52 (diff)
schema sisa uang muka
Diffstat (limited to 'fixco_custom/models/purchase_order.py')
-rw-r--r--fixco_custom/models/purchase_order.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/fixco_custom/models/purchase_order.py b/fixco_custom/models/purchase_order.py
index 0869cc8..8c84215 100644
--- a/fixco_custom/models/purchase_order.py
+++ b/fixco_custom/models/purchase_order.py
@@ -21,10 +21,11 @@ class PurchaseOrder(models.Model):
'automatic.purchase',
string='Automatic Purchase Reference',
ondelete='set null',
- index=True
+ index=True,
+ copy=False
)
- sale_order_id = fields.Many2one('sale.order', string='Sales Order')
- move_entry_id = fields.Many2one('account.move', string='Journal Entries')
+ sale_order_id = fields.Many2one('sale.order', string='Sales Order', copy=False)
+ move_entry_id = fields.Many2one('account.move', string='Journal Entries', copy=False)
amount_discount = fields.Monetary(
string='Total Discount',
compute='_compute_amount_discount',
@@ -34,7 +35,8 @@ class PurchaseOrder(models.Model):
biaya_lain_lain = fields.Float(
'Biaya Lain Lain',
default=0.0,
- tracking=True
+ tracking=True,
+ copy=False
)
source = fields.Selection([
@@ -42,7 +44,7 @@ class PurchaseOrder(models.Model):
('reordering', 'Reordering'),
('purchasing_job', 'Purchasing Job'),
('manual', 'Manual')
- ], string='Source', default='manual')
+ ], string='Source', default='manual', copy=False)
count_journals = fields.Integer('Count Payment', compute='_compute_count_journals')
def _compute_count_journals(self):