blob: 9b5f00367022203e1bdcb5c7a881ce83754afce2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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
|