From 5eabba4b2a8a3e1ec233f60c6aa7a0fa7414fd51 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Wed, 27 Dec 2023 13:37:37 +0700 Subject: alert if so have matches po --- indoteknik_custom/models/purchasing_job.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'indoteknik_custom/models/purchasing_job.py') diff --git a/indoteknik_custom/models/purchasing_job.py b/indoteknik_custom/models/purchasing_job.py index 09c202d9..7ac678c4 100644 --- a/indoteknik_custom/models/purchasing_job.py +++ b/indoteknik_custom/models/purchasing_job.py @@ -18,13 +18,12 @@ class PurchasingJob(models.Model): incoming = fields.Float(string="Incoming") outgoing = fields.Float(string="Outgoing") action = fields.Char(string="Status") - is_po = fields.Boolean(string='Is PO') def init(self): tools.drop_view_if_exists(self.env.cr, self._table) self.env.cr.execute(""" CREATE OR REPLACE VIEW %s AS ( - select product_id as id, product_id, brand, item_code, product, onhand, incoming, outgoing, action + select product_id as id, product_id, brand, item_code, product, onhand, incoming, outgoing, action from v_procurement_monitoring_by_product where action = 'kurang beli' ) -- cgit v1.2.3