[IMP] usability

bzr revid: fp@tinyerp.com-20120831163517-vqatk8mzl7u2vuym
This commit is contained in:
Fabien Pinckaers 2012-08-31 18:35:17 +02:00
parent 6eb0b6af71
commit 349c24a1cd
3 changed files with 13 additions and 5 deletions

View File

@ -1306,7 +1306,7 @@ class product_product(osv.osv):
def edit_ean(self, cr, uid, ids, context):
return {
'name': "Edit Ean",
'name': _("Assign a Custom EAN"),
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_mode': 'form',

View File

@ -635,7 +635,7 @@
</group>
</group>
<field name="ean13" position="after">
<button name="edit_ean" type="object" string="Custom EAN" class="oe_link"/>
<button name="edit_ean" type="object" string="Set a Custom EAN" class="oe_link oe_edit_only"/>
</field>
</field>
</record>
@ -1069,9 +1069,17 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Ean13 Generator" version="7.0">
<field name="ean13_pattern"/>
<p class="oe_grey">
Enter a reference for this product, it will be converted
automatically to a valid EAN number.
</p>
<group>
<field name="ean13_pattern"/>
</group>
<footer>
<button name="sanitize_ean13" type="object" string="Apply"/>
<button name="sanitize_ean13" type="object" string="Apply" class="oe_highlight"/> or
<button icon="gtk-stop" special="cancel"
string="Cancel" class="oe_link"/>
</footer>
</form>
</field>

View File

@ -94,7 +94,7 @@
<field name="default_code"/>
<label for="ean13"/>
<div name="ean">
<field name="ean13" placeholder="e.g. 5901234123457" class="oe_inline"/>
<field name="ean13" placeholder="e.g. 5901234123457"/>
</div>
<field groups="product.group_product_variant" name="variants"/>
</group>