[MIG] stock_picking_type_default_partner from v10 to v14
This commit is contained in:
@@ -1,3 +1 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
from . import models
|
||||||
|
|
||||||
from . import stock
|
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# Copyright 2014-2021 Akretion France (http://www.akretion.com)
|
||||||
# Copyright (C) 2014-2018 Akretion (http://www.akretion.com)
|
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Stock Picking Type Default Partner',
|
'name': 'Stock Picking Type Default Partner',
|
||||||
'version': '10.0.1.0.0',
|
'version': '14.0.1.0.0',
|
||||||
'category': 'Inventory, Logistics, Warehousing',
|
'category': 'Inventory, Logistics, Warehousing',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'summary': 'Adds a default partner on types of operation',
|
'summary': 'Adds a default partner on types of operation',
|
||||||
@@ -21,6 +20,6 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'author': 'Akretion',
|
'author': 'Akretion',
|
||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['stock'],
|
'depends': ['stock'],
|
||||||
'data': ['stock_view.xml'],
|
'data': ['views/stock_picking_type.xml'],
|
||||||
'installable': True,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
1
stock_picking_type_default_partner/models/__init__.py
Normal file
1
stock_picking_type_default_partner/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
from . import stock_picking
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# Copyright 2014-2021 Akretion France (http://www.akretion.com)
|
||||||
# Copyright 2014-2018 Akretion (http://www.akretion.com)
|
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
@@ -28,4 +27,5 @@ class StockPicking(models.Model):
|
|||||||
return picktype.default_partner_id
|
return picktype.default_partner_id
|
||||||
return False
|
return False
|
||||||
|
|
||||||
partner_id = fields.Many2one(default=_default_partner_id)
|
partner_id = fields.Many2one(
|
||||||
|
default=lambda self: self._default_partner_id())
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (C) 2015-2018 Akretion (http://www.akretion.com/)
|
Copyright 2015-2021 Akretion (http://www.akretion.com/)
|
||||||
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
-->
|
-->
|
||||||
Reference in New Issue
Block a user