Skip to content

Commit

Permalink
Merge pull request #149 from beescoop/12.0-mig-beesdoo-inventory
Browse files Browse the repository at this point in the history
[12.0][FIX] beesdoo_inventory
  • Loading branch information
remytms authored May 7, 2020
2 parents 9381f7e + 4ed8928 commit 1ea5f5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion beesdoo_inventory/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'website': "https://github.com/beescoop/Obeesdoo",
'category': 'Inventory',
'version': '12.0.1.0.0',
'depends': ['delivery', 'beesdoo_base'],
'depends': ['delivery', 'beesdoo_base', 'beesdoo_product'],
'data': [
'views/stock.xml'
],
Expand Down
6 changes: 3 additions & 3 deletions beesdoo_inventory/models/stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ def create(self, values):
@api.multi
def copy_qty(self):
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
4 changes: 2 additions & 2 deletions beesdoo_inventory/views/stock.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
<field name="responsible" />
</field>
<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')]}"/>
</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>
</xpath>
</field>
Expand Down

0 comments on commit 1ea5f5f

Please sign in to comment.