mirror of
https://github.com/bringout/ventor.git
synced 2026-04-21 13:51:59 +02:00
Initial commit: Ventor Odoo packages (4 packages)
This commit is contained in:
commit
1f20ad87e6
190 changed files with 10375 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
from odoo import SUPERUSER_ID, _, api
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
|
||||
lot_for_location_setting = env.ref("ventor_base.lot_for_location_int_transfers")
|
||||
lot_for_location_setting.write(
|
||||
{
|
||||
"description": "If it is active, you can select only lots from source location"
|
||||
}
|
||||
)
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
from odoo import SUPERUSER_ID, _, api
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
|
||||
ventor_roles_warehouse_worker = env.ref('ventor_base.ventor_role_wh_worker')
|
||||
ventor_roles_warehouse_worker.write(
|
||||
{
|
||||
'implied_ids': [
|
||||
(4, env.ref('ventor_base.merp_order_recheck_menu').id),
|
||||
(4, env.ref('ventor_base.merp_rfid_menu').id),
|
||||
]
|
||||
}
|
||||
)
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
from odoo import SUPERUSER_ID, _, api
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
|
||||
ventor_roles_warehouse_worker = env.ref('ventor_base.ventor_role_wh_worker')
|
||||
ventor_roles_warehouse_worker.write(
|
||||
{
|
||||
'implied_ids': [
|
||||
(4, env.ref('ventor_base.merp_wave_picking_menu').id),
|
||||
]
|
||||
}
|
||||
)
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
from odoo import SUPERUSER_ID, _, api
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
|
||||
allow_validate_less = env.ref("ventor_base.allow_validate_less")
|
||||
allow_validate_less.write(
|
||||
{
|
||||
"name": "Validate uncompleted orders",
|
||||
"description": "User will be able to validate the order even if not all items were found"
|
||||
}
|
||||
)
|
||||
|
||||
value = {
|
||||
"name": "Confirm destination package",
|
||||
"description": "User has to scan a barcode of destination package. "
|
||||
"The dot next to the field gets yellow color means user has to confirm it"
|
||||
}
|
||||
|
||||
scan_destination_package_batch_picking = env.ref(
|
||||
"ventor_base.scan_destination_package_batch_picking",
|
||||
False,
|
||||
)
|
||||
scan_destination_package_cluster_picking = env.ref(
|
||||
"ventor_base.scan_destination_package_cluster_picking",
|
||||
False,
|
||||
)
|
||||
|
||||
if scan_destination_package_batch_picking:
|
||||
scan_destination_package_batch_picking.write(value)
|
||||
if scan_destination_package_cluster_picking:
|
||||
scan_destination_package_cluster_picking.write(value)
|
||||
Loading…
Add table
Add a link
Reference in a new issue