summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/stock_picking.py
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-08-31 17:10:10 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-08-31 17:10:10 +0700
commite682e0518fcaa62588287bb974d8697ceed8300f (patch)
treeeebe5fca40c038aa21fc230f7b5707fa38b27b20 /indoteknik_custom/models/stock_picking.py
parenta14315652c37267e437ce644190781486f73aa10 (diff)
parent1e8c8cf61497f7bc67b8282c34641474107e9d8e (diff)
Merge branch 'internal-use'
# Conflicts: # indoteknik_custom/models/__init__.py
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
-rw-r--r--indoteknik_custom/models/stock_picking.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
new file mode 100644
index 00000000..9b5f0036
--- /dev/null
+++ b/indoteknik_custom/models/stock_picking.py
@@ -0,0 +1,12 @@
+from odoo import fields, models, api
+
+
+class StockPicking(models.Model):
+ _inherit = 'stock.picking'
+ is_internal_use = fields.Boolean('Internal Use', help="flag which is internal use or not")
+ account_id = fields.Many2one('account.account', string="Account")
+
+ @api.onchange('picking_type_id')
+ def _onchange_operation_type(self):
+ self.is_internal_use = self.picking_type_id.is_internal_use
+ return