MIG stock_picklistFor Odoo 13.0

This commit is contained in:
Bhoomi
2019-09-04 11:06:02 -04:00
parent 0ef0d6b1ce
commit ec1e5527a7
3 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
'name': 'Stock Picklist', 'name': 'Stock Picklist',
'version': '12.0.1.0.0', 'version': '13.0.1.0.0',
'category': 'Tools', 'category': 'Tools',
'depends': [ 'depends': [
'stock_picking_batch', 'stock_picking_batch',

View File

@@ -5,7 +5,6 @@ from odoo.exceptions import UserError
class StockPickingBatch(models.Model): class StockPickingBatch(models.Model):
_inherit = 'stock.picking.batch' _inherit = 'stock.picking.batch'
@api.multi
def print_pick_list(self): def print_pick_list(self):
pickings = self.mapped('picking_ids') pickings = self.mapped('picking_ids')
if not pickings: if not pickings:

View File

@@ -24,7 +24,8 @@
<t t-foreach="docs" t-as="l"> <t t-foreach="docs" t-as="l">
<t t-foreach="l.lines" t-as="p"> <t t-foreach="l.lines" t-as="p">
<tr> <tr>
<td><img t-att-src="p.product_id.image_small and ('data:image/png;base64,' + to_text(p.product_id.image_small)) or '/web/static/src/img/placeholder.png'" width="50" height="50"/></td> <td><img t-att-src="p.product_id.image_512 or '/web/static/src/img/placeholder.png'" width="50" height="50"/></td>
<!-- <td><<img t-att-src="p.product_id.image_64 and ('data:image/png;base64,' + to_text(product_id.image_64)) or '/web/static/src/img/placeholder.png'" width="50" height="50"/></td>-->
<td><span t-esc="p.qty"/></td> <td><span t-esc="p.qty"/></td>
<td> <td>
<span t-if="p.product_id.seller_ids" t-field="p.product_id.seller_ids[0].name" /> - <span t-if="p.product_id.seller_ids" t-field="p.product_id.seller_ids[0].name" /> -