Skip to Content
Menu

Purchase order multi lots selection

by
Odoo

29.17

v 16.0 Third Party 32
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Purchase (purchase)
Invoicing (account)
Discuss (mail)
Inventory (stock)
Lines of code 45
Technical Name mai_po_multi_lot_selection
LicenseOPL-1
Websitehttp://maisolutionsllc.com/
Versions 12.0 13.0 14.0 15.0 16.0 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Purchase (purchase)
Invoicing (account)
Discuss (mail)
Inventory (stock)
Lines of code 45
Technical Name mai_po_multi_lot_selection
LicenseOPL-1
Websitehttp://maisolutionsllc.com/
Versions 12.0 13.0 14.0 15.0 16.0 17.0 18.0

Purchase Order Multi Lot Selection and Creation (Community & Enterprise)

    Key Features
  • Using this module you can select multiple Lot number in the Purchase order line.
  • FIFO method is used for multi lot Number Selection.
  • Tested on the Odoo.sh.
  • Compatible for community and enterprise version of odoo.

Purchase Order Multi Lot Selection


For use this module first enable Lots and Serial numbers from Inventory -> Configuration -> Lots Serial Numbers.

From product you need to enable tracking by lot number. For that select following configuration from product's Inventory tab-> Traceability -> By lots.

Create a Purchase order and add product and create lot number of the selected product as per screen.

For incoming shipment it will auto come the selected Lot/ Serial number..

View of selected LOT/Serial in Shipment.


NOTE: You can ask on contact number if you need any help for this module. we can help for only this module. if you need to resolve error with another module that it take an extra changes.

Contact us for support, query, customization, implementation, Odoo Version Migration.

Website Contact US: http://maisolutionsllc.com/contactus | Skype: maisolutionsllc@gmail.com
Write us Mail: apps@maisolutionsllc.com
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
There are no ratings yet!
pjo
by
aassdd
on 10/9/23, 10:31 AM Confirmed Purchase

لقد أرسلت لك الفيديو عبر هذا العنوان maisolutionsllc@gmail.com


by
aassdd
on 10/9/23, 9:44 AM Confirmed Purchase

يظهر الخطأ فقط عند إضافة أكثر من منتج إلى عناصر عرض السعر


This error appears when I select more than one product in the price quote
by
aassdd
on 10/9/23, 9:27 AM Confirmed Purchase

This error appears when I select more than one product in the price quote


 RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
  File "C:\odoo16\server\odoo\http.py", line 1584, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "C:\odoo16\server\odoo\service\model.py", line 133, in retrying
    result = func()
  File "C:\odoo16\server\odoo\http.py", line 1611, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "C:\odoo16\server\odoo\http.py", line 1815, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
  File "C:\odoo16\server\odoo\addons\website\models\ir_http.py", line 235, in _dispatch
    response = super()._dispatch(endpoint)
  File "C:\odoo16\server\odoo\addons\base\models\ir_http.py", line 154, in _dispatch
    result = endpoint(**request.params)
  File "C:\odoo16\server\odoo\http.py", line 697, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "C:\odoo16\server\odoo\addons\web\controllers\dataset.py", line 46, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "C:\odoo16\server\odoo\addons\web\controllers\dataset.py", line 33, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "C:\odoo16\server\odoo\api.py", line 461, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "C:\odoo16\server\odoo\api.py", line 448, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "C:\odoo16\server\odoo\addons\purchase\models\purchase.py", line 495, in button_confirm
    order.button_approve()
  File "C:\odoo16\server\odoo\addons\purchase_stock\models\purchase.py", line 111, in button_approve
    self._create_picking()
  File "C:\odoo16\server\odoo\addons\purchase_stock\models\purchase.py", line 241, in _create_picking
    moves = order.order_line._create_stock_moves(picking)
  File "C:\odoo16\server\odoo\addons\mai_po_multi_lot_selection\model\purchase_order_line.py", line 16, in _create_stock_moves
    'product_id': records.product_id.id,
  File "C:\odoo16\server\odoo\fields.py", line 5063, in __get__
    raise ValueError("Expected singleton: %s" % record)
ValueError: Expected singleton: product.product(214, 505)

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
    at makeErrorFromResponse (http://localhost:8069/web/assets/1120-47a2141/web.assets_backend.min.js:985:163)
    at XMLHttpRequest. (http://localhost:8069/web/assets/1120-47a2141/web.assets_backend.min.js:993:13)


by
aassdd
on 8/31/23, 4:19 PM Confirmed Purchase

RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "C:\odoo16\server\odoo\http.py", line 1584, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "C:\odoo16\server\odoo\service\model.py", line 133, in retrying
result = func()
File "C:\odoo16\server\odoo\http.py", line 1611, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "C:\odoo16\server\odoo\http.py", line 1815, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "C:\odoo16\server\odoo\addons\base\models\ir_http.py", line 154, in _dispatch
result = endpoint(**request.params)
File "C:\odoo16\server\odoo\http.py", line 697, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "C:\odoo16\server\odoo\addons\web\controllers\dataset.py", line 46, in call_button
action = self._call_kw(model, method, args, kwargs)
File "C:\odoo16\server\odoo\addons\web\controllers\dataset.py", line 33, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\odoo16\server\odoo\api.py", line 461, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\odoo16\server\odoo\api.py", line 448, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "C:\odoo16\server\odoo\addons\base\models\ir_module.py", line 76, in check_and_log
return method(self, *args, **kwargs)
File "C:\odoo16\server\odoo\addons\base\models\ir_module.py", line 491, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "C:\odoo16\server\odoo\addons\base\models\ir_module.py", line 615, in _button_immediate_function
registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "", line 2, in new
File "C:\odoo16\server\odoo\tools\func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "C:\odoo16\server\odoo\modules\registry.py", line 90, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "C:\odoo16\server\odoo\modules\loading.py", line 488, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "C:\odoo16\server\odoo\modules\loading.py", line 372, in load_marked_modules
loaded, processed = load_module_graph(
File "C:\odoo16\server\odoo\modules\loading.py", line 231, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "C:\odoo16\server\odoo\modules\loading.py", line 71, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "C:\odoo16\server\odoo\tools\convert.py", line 763, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "C:\odoo16\server\odoo\tools\convert.py", line 829, in convert_xml_import
obj.parse(doc.getroot())
File "C:\odoo16\server\odoo\tools\convert.py", line 749, in parse
self._tag_root(de)
File "C:\odoo16\server\odoo\tools\convert.py", line 709, in _tag_root
raise ParseError(msg) from None # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback
odoo.tools.convert.ParseError: while parsing file:/c:/odoo16/server/odoo/addons/mai_po_multi_lot_selection/view/purchase_order_line.xml:3
حدث خطأ ما أثناء تصديق طريقة العرض بالقرب من:







حقل غير معروف "_unknown.product_id" في domain of ([('product_id','=', product_id)])) 

View error context:
{'file': 'c:\\odoo16\\server\\odoo\\addons\\mai_po_multi_lot_selection\\view\\purchase_order_line.xml',
'line': 3,
'name': 'purchase.order form',
'view': ir.ui.view(3051,),
'view.model': 'purchase.order',
'view.parent': ir.ui.view(934,),
'xmlid': 'purchase_order_tree_lot'}


The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
at makeErrorFromResponse (http://localhost:8069/web/assets/609-82aba59/web.assets_backend.min.js:985:163)
at XMLHttpRequest. (http://localhost:8069/web/assets/609-82aba59/web.assets_backend.min.js:993:13)

Re:
by
Mai Solutions LLC
on 9/1/23, 1:30 AM Author

Hello If you have any Problem plz contact us at : maisolutionsllc@gmail.com  in Gmail or on skype.

we will help and support there.

Thanks.


RPC_ERROR Odoo Server Error Traceback (most recent call last): File "C:\odoo16\server\odoo\http.py", line 1584, in _serve_db return service_model.retrying(self._serve_ir_http, self.env) File "C:\odoo16\server\odoo\service\model.py", line 133, in retrying result = func() File "C:\odoo16\server\odoo\http.py", line 1611, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) File "C:\odoo16\server\odoo\http.py", line 1815, in dispatch result = self.request.registry['ir.http']._dispatch(endpoint) File "C:\odoo16\server\odoo\addons\base\models\ir_http.py", line 154, in _dispatch result = endpoint(**request.params) File "C:\odoo16\server\odoo\http.py", line 697, in route_wrapper result = endpoint(self, *args, **params_ok) File "C:\odoo16\server\odoo\addons\web\controllers\dataset.py", line 46, in call_button action = self._call_kw(model, method, args, kwargs) File "C:\odoo16\server\odoo\addons\web\controllers\dataset.py", line 33, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "C:\odoo16\server\odoo\api.py", line 461, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "C:\odoo16\server\odoo\api.py", line 448, in _call_kw_multi result = method(recs, *args, **kwargs) File "<decorator-gen-74>", line 2, in button_immediate_install File "C:\odoo16\server\odoo\addons\base\models\ir_module.py", line 76, in check_and_log return method(self, *args, **kwargs) File "C:\odoo16\server\odoo\addons\base\models\ir_module.py", line 491, in button_immediate_install return self._button_immediate_function(type(self).button_install) File "C:\odoo16\server\odoo\addons\base\models\ir_module.py", line 615, in _button_immediate_function registry = modules.registry.Registry.new(self._cr.dbname, update_module=True) File "<decorator-gen-14>", line 2, in new File "C:\odoo16\server\odoo\tools\func.py", line 87, in locked return func(inst, *args, **kwargs) File "C:\odoo16\server\odoo\modules\registry.py", line 90, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "C:\odoo16\server\odoo\modules\loading.py", line 488, in load_modules processed_modules += load_marked_modules(cr, graph, File "C:\odoo16\server\odoo\modules\loading.py", line 372, in load_marked_modules loaded, processed = load_module_graph( File "C:\odoo16\server\odoo\modules\loading.py", line 231, in load_module_graph load_data(cr, idref, mode, kind='data', package=package) File "C:\odoo16\server\odoo\modules\loading.py", line 71, in load_data tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind) File "C:\odoo16\server\odoo\tools\convert.py", line 763, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate) File "C:\odoo16\server\odoo\tools\convert.py", line 829, in convert_xml_import obj.parse(doc.getroot()) File "C:\odoo16\server\odoo\tools\convert.py", line 749, in parse self._tag_root(de) File "C:\odoo16\server\odoo\tools\convert.py", line 709, in _tag_root raise ParseError(msg) from None # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback odoo.tools.convert.ParseError: while parsing file:/c:/odoo16/server/odoo/addons/mai_po_multi_lot_selection/view/purchase_order_line.xml:3 حدث خطأ ما أثناء تصديق طريقة العرض بالقرب من: <form string="Purchase Order" class="o_purchase_order"> <header> <button name="action_rfq_send" states="draft" string="Send by Email" type="object" context="{'send_rfq':True}" class="oe_highlight" data-hotkey="g"/> <button name="action_view_picking" string="Receive Products" class="oe_highlight" type="object" attrs="{'invisible': ['|', '|' , ('is_shipped', '=', True), ('state','not in', ('purchase','done')), ('incoming_picking_count', '=', 0)]}" data-hotkey="y" groups="stock.group_stock_user"/> <button name="print_quotation" string="Print RFQ" type="object" states="draft" class="oe_highlight" groups="base.group_user" data-hotkey="k"/> حقل غير معروف "_unknown.product_id" في domain of <field name="lot_ids"> ([('product_id','=', product_id)])) View error context: {'file': 'c:\\odoo16\\server\\odoo\\addons\\mai_po_multi_lot_selection\\view\\purchase_order_line.xml', 'line': 3, 'name': 'purchase.order form', 'view': ir.ui.view(3051,), 'view.model': 'purchase.order', 'view.parent': ir.ui.view(934,), 'xmlid': 'purchase_order_tree_lot'} The above server error caused the following client error: RPC_ERROR: Odoo Server Error at makeErrorFromResponse (http://localhost:8069/web/assets/609-82aba59/web.assets_backend.min.js:985:163) at XMLHttpRequest.<anonymous> (http://localhost:8069/web/assets/609-82aba59/web.assets_backend.min.js:993:13)
by
aassdd
on 8/31/23, 4:18 PM Confirmed Purchase


Re: RPC_ERROR Odoo Server Error Traceback (most recent call last): File "C:\odoo16\server\odoo\http.py", line 1584, in _serve_db return service_model.retrying(self._serve_ir_http, self.env) File "C:\odoo16\server\odoo\service\model.py", line 133, in retrying result = func() File "C:\odoo16\server\odoo\http.py", line 1611, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) File "C:\odoo16\server\odoo\http.py", line 1815, in dispatch result = self.request.registry['ir.http']._dispatch(endpoint) File "C:\odoo16\server\odoo\addons\base\models\ir_http.py", line 154, in _dispatch result = endpoint(**request.params) File "C:\odoo16\server\odoo\http.py", line 697, in route_wrapper result = endpoint(self, *args, **params_ok) File "C:\odoo16\server\odoo\addons\web\controllers\dataset.py", line 46, in call_button action = self._call_kw(model, method, args, kwargs) File "C:\odoo16\server\odoo\addons\web\controllers\dataset.py", line 33, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "C:\odoo16\server\odoo\api.py", line 461, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "C:\odoo16\server\odoo\api.py", line 448, in _call_kw_multi result = method(recs, *args, **kwargs) File "<decorator-gen-74>", line 2, in button_immediate_install File "C:\odoo16\server\odoo\addons\base\models\ir_module.py", line 76, in check_and_log return method(self, *args, **kwargs) File "C:\odoo16\server\odoo\addons\base\models\ir_module.py", line 491, in button_immediate_install return self._button_immediate_function(type(self).button_install) File "C:\odoo16\server\odoo\addons\base\models\ir_module.py", line 615, in _button_immediate_function registry = modules.registry.Registry.new(self._cr.dbname, update_module=True) File "<decorator-gen-14>", line 2, in new File "C:\odoo16\server\odoo\tools\func.py", line 87, in locked return func(inst, *args, **kwargs) File "C:\odoo16\server\odoo\modules\registry.py", line 90, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "C:\odoo16\server\odoo\modules\loading.py", line 488, in load_modules processed_modules += load_marked_modules(cr, graph, File "C:\odoo16\server\odoo\modules\loading.py", line 372, in load_marked_modules loaded, processed = load_module_graph( File "C:\odoo16\server\odoo\modules\loading.py", line 231, in load_module_graph load_data(cr, idref, mode, kind='data', package=package) File "C:\odoo16\server\odoo\modules\loading.py", line 71, in load_data tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind) File "C:\odoo16\server\odoo\tools\convert.py", line 763, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate) File "C:\odoo16\server\odoo\tools\convert.py", line 829, in convert_xml_import obj.parse(doc.getroot()) File "C:\odoo16\server\odoo\tools\convert.py", line 749, in parse self._tag_root(de) File "C:\odoo16\server\odoo\tools\convert.py", line 709, in _tag_root raise ParseError(msg) from None # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback odoo.tools.convert.ParseError: while parsing file:/c:/odoo16/server/odoo/addons/mai_po_multi_lot_selection/view/purchase_order_line.xml:3 حدث خطأ ما أثناء تصديق طريقة العرض بالقرب من: <form string="Purchase Order" class="o_purchase_order"> <header> <button name="action_rfq_send" states="draft" string="Send by Email" type="object" context="{'send_rfq':True}" class="oe_highlight" data-hotkey="g"/> <button name="action_view_picking" string="Receive Products" class="oe_highlight" type="object" attrs="{'invisible': ['|', '|' , ('is_shipped', '=', True), ('state','not in', ('purchase','done')), ('incoming_picking_count', '=', 0)]}" data-hotkey="y" groups="stock.group_stock_user"/> <button name="print_quotation" string="Print RFQ" type="object" states="draft" class="oe_highlight" groups="base.group_user" data-hotkey="k"/> حقل غير معروف "_unknown.product_id" في domain of <field name="lot_ids"> ([('product_id','=', product_id)])) View error context: {'file': 'c:\\odoo16\\server\\odoo\\addons\\mai_po_multi_lot_selection\\view\\purchase_order_line.xml', 'line': 3, 'name': 'purchase.order form', 'view': ir.ui.view(3051,), 'view.model': 'purchase.order', 'view.parent': ir.ui.view(934,), 'xmlid': 'purchase_order_tree_lot'} The above server error caused the following client error: RPC_ERROR: Odoo Server Error at makeErrorFromResponse (http://localhost:8069/web/assets/609-82aba59/web.assets_backend.min.js:985:163) at XMLHttpRequest.<anonymous> (http://localhost:8069/web/assets/609-82aba59/web.assets_backend.min.js:993:13)
by
Mai Solutions LLC
on 9/1/23, 1:29 AM Author

Hello If you have any Problem plz contact us at : maisolutionsllc@gmail.com  in Gmail or on skype.

we will help and support there.

Thanks.