[IMP] product view
bzr revid: fp@tinyerp.com-20120831164018-b8m7xhxi2na5eraj
This commit is contained in:
parent
349c24a1cd
commit
33897328bc
|
@ -1242,7 +1242,7 @@ import io, StringIO
|
||||||
class ean_wizard(osv.osv_memory):
|
class ean_wizard(osv.osv_memory):
|
||||||
_name = 'pos.ean_wizard'
|
_name = 'pos.ean_wizard'
|
||||||
_columns = {
|
_columns = {
|
||||||
'ean13_pattern': fields.char('Ean13 Pattern', size=32, required=True, translate=True),
|
'ean13_pattern': fields.char('Reference', size=32, required=True, translate=True),
|
||||||
}
|
}
|
||||||
def sanitize_ean13(self, cr, uid, ids, context):
|
def sanitize_ean13(self, cr, uid, ids, context):
|
||||||
for r in self.browse(cr,uid,ids):
|
for r in self.browse(cr,uid,ids):
|
||||||
|
|
|
@ -1074,7 +1074,7 @@
|
||||||
automatically to a valid EAN number.
|
automatically to a valid EAN number.
|
||||||
</p>
|
</p>
|
||||||
<group>
|
<group>
|
||||||
<field name="ean13_pattern"/>
|
<field name="ean13_pattern" class="oe_inline"/>
|
||||||
</group>
|
</group>
|
||||||
<footer>
|
<footer>
|
||||||
<button name="sanitize_ean13" type="object" string="Apply" class="oe_highlight"/> or
|
<button name="sanitize_ean13" type="object" string="Apply" class="oe_highlight"/> or
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
<field name="model">product.product</field>
|
<field name="model">product.product</field>
|
||||||
<field name="inherit_id" ref="stock.view_normal_procurement_locations_form"/>
|
<field name="inherit_id" ref="stock.view_normal_procurement_locations_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="active" position="after">
|
<field name="type" position="after">
|
||||||
<field name="project_id" attrs="{'readonly':[('type','!=','service')]}" />
|
<field name="project_id" attrs="{'invisible':[('type','!=','service')]}" />
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
Loading…
Reference in New Issue