summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrisusilo48 <tri.susilo@altama.co.id>2025-02-24 09:33:28 +0700
committertrisusilo48 <tri.susilo@altama.co.id>2025-02-24 09:33:28 +0700
commitf0d995cc220cefffe65ce308ee234528ddc0d6ed (patch)
treef2686554be59796d85c2c9442e10515919f09ced
parent92222d326692652b2c4146e0e6040c74f75d4abc (diff)
biteship
-rw-r--r--indoteknik_api/controllers/api_v1/stock_picking.py7
-rw-r--r--indoteknik_custom/models/public_holiday.py4
-rw-r--r--indoteknik_custom/views/public_holiday.xml2
3 files changed, 8 insertions, 5 deletions
diff --git a/indoteknik_api/controllers/api_v1/stock_picking.py b/indoteknik_api/controllers/api_v1/stock_picking.py
index 2fc4d8a5..3e58417f 100644
--- a/indoteknik_api/controllers/api_v1/stock_picking.py
+++ b/indoteknik_api/controllers/api_v1/stock_picking.py
@@ -136,4 +136,9 @@ class StockPicking(controller.Controller):
return self.response({
'name': picking_data.name
- }) \ No newline at end of file
+ })
+
+ @http.route(prefix + 'n', auth='public', methods=['PUT', 'OPTIONS'], csrf=False)
+ def udpate_status_from_bitehsip(self, **kw):
+ picking_code = int(kw.get('picking_code', 0))
+ \ No newline at end of file
diff --git a/indoteknik_custom/models/public_holiday.py b/indoteknik_custom/models/public_holiday.py
index 70b7c53a..851d9080 100644
--- a/indoteknik_custom/models/public_holiday.py
+++ b/indoteknik_custom/models/public_holiday.py
@@ -6,6 +6,6 @@ class PublicHoliday(models.Model):
_description = 'Public Holidays'
name = fields.Char(string='Holiday Name', required=True)
- start_date = fields.Date('Start Holiday Date', required=True)
- end_date = fields.Date('End Holiday Date', required=True)
+ start_date = fields.Date('Date Holiday', required=True)
+ # end_date = fields.Date('End Holiday Date', required=True)
# company_id = fields.Many2one('res.company', 'Company')
diff --git a/indoteknik_custom/views/public_holiday.xml b/indoteknik_custom/views/public_holiday.xml
index d0b9c5d5..146c5b0b 100644
--- a/indoteknik_custom/views/public_holiday.xml
+++ b/indoteknik_custom/views/public_holiday.xml
@@ -22,7 +22,6 @@
<group>
<field name="name"/>
<field name="start_date"/>
- <field name="end_date"/>
</group>
</sheet>
</form>
@@ -36,7 +35,6 @@
<tree string="Public Holidays">
<field name="name"/>
<field name="start_date"/>
- <field name="end_date"/>
</tree>
</field>
</record>