Skip to content

Commit

Permalink
Merge pull request odoo#65 from ingadhoc/fix_stock_pickin
Browse files Browse the repository at this point in the history
FIX stock_picking
  • Loading branch information
jjscarafia committed Jun 25, 2015
2 parents 635605f + 0be5963 commit 280429e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions stock_picking_control/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,11 @@ class stock_move(models.Model):

code = fields.Selection(
related='picking_type_id.code', string='Operation Type')


class stock_picking(models.Model):

_inherit = 'stock.picking'

code = fields.Selection(
related='picking_type_id.code', string='Operation Type')
14 changes: 14 additions & 0 deletions stock_picking_control/stock_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@
</tree>
</field>
</record>

<record id="view_picking" model="ir.ui.view">
<field name="name">stock.picking.form</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="code" invisible="1"/>
</field>
<field name="move_lines" position="attributes">
<attribute name="attrs">{'readonly':[('code','!=','internal')]}</attribute>
</field>
</field>
</record>

</data>
</openerp>

0 comments on commit 280429e

Please sign in to comment.