Browse Source
Merge pull request #149 from beescoop/12.0-mig-beesdoo-inventory
[12.0][FIX] beesdoo_inventory
pull/150/head
12.0-2020-05-11.00
Rémy Taymans
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
6 additions and
6 deletions
-
beesdoo_inventory/__manifest__.py
-
beesdoo_inventory/models/stock.py
-
beesdoo_inventory/views/stock.xml
|
@ -19,7 +19,7 @@ |
|
|
'website': "https://github.com/beescoop/Obeesdoo", |
|
|
'website': "https://github.com/beescoop/Obeesdoo", |
|
|
'category': 'Inventory', |
|
|
'category': 'Inventory', |
|
|
'version': '12.0.1.0.0', |
|
|
'version': '12.0.1.0.0', |
|
|
'depends': ['delivery', 'beesdoo_base'], |
|
|
|
|
|
|
|
|
'depends': ['delivery', 'beesdoo_base', 'beesdoo_product'], |
|
|
'data': [ |
|
|
'data': [ |
|
|
'views/stock.xml' |
|
|
'views/stock.xml' |
|
|
], |
|
|
], |
|
|
|
@ -32,6 +32,6 @@ class StockPicking(models.Model): |
|
|
@api.multi |
|
|
@api.multi |
|
|
def copy_qty(self): |
|
|
def copy_qty(self): |
|
|
self.ensure_one() |
|
|
self.ensure_one() |
|
|
for pack_operation in self.pack_operation_product_ids: |
|
|
|
|
|
pack_operation.qty_done = pack_operation.product_qty |
|
|
|
|
|
return True |
|
|
|
|
|
|
|
|
for move_line in self.move_line_ids: |
|
|
|
|
|
move_line.qty_done = move_line.product_qty |
|
|
|
|
|
return True |
|
@ -23,10 +23,10 @@ |
|
|
<field name="responsible" /> |
|
|
<field name="responsible" /> |
|
|
</field> |
|
|
</field> |
|
|
<button name="action_assign" position="after"> |
|
|
<button name="action_assign" position="after"> |
|
|
<button name="copy_qty" string="Copy Pack Quantity" states="partially_available,assigned" type="object" class="oe_highlight" |
|
|
|
|
|
|
|
|
<button name="copy_qty" string="Copy Move Line Quantity" states="partially_available,assigned" type="object" class="oe_highlight" |
|
|
attrs="{'invisible': ['|', ('picking_type_code', '!=', 'incoming')]}"/> |
|
|
attrs="{'invisible': ['|', ('picking_type_code', '!=', 'incoming')]}"/> |
|
|
</button> |
|
|
</button> |
|
|
<xpath expr="//field[@name='product_id']" position="attributes"> |
|
|
|
|
|
|
|
|
<xpath expr="//field[@name='move_ids_without_package']//field[@name='product_id']" position="attributes"> |
|
|
<attribute name="domain">[('main_seller_id', '=', parent.partner_id)]</attribute> |
|
|
<attribute name="domain">[('main_seller_id', '=', parent.partner_id)]</attribute> |
|
|
</xpath> |
|
|
</xpath> |
|
|
</field> |
|
|
</field> |
|
|