Browse Source

update por bad definition inverse method in field image_medium

pull/52/head
cellsnake 9 years ago
parent
commit
e53353daed
  1. 13
      .idea/codeStyleSettings.xml
  2. 4
      pos_remove_pos_category/product.py

13
.idea/codeStyleSettings.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectCodeStyleSettingsManager">
<option name="PER_PROJECT_SETTINGS">
<value>
<XML>
<option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" />
</XML>
</value>
</option>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default (1)" />
</component>
</project>

4
pos_remove_pos_category/product.py

@ -44,9 +44,9 @@ class ProductTemplate(models.Model):
class ProductCategory(models.Model): class ProductCategory(models.Model):
_inherit = 'product.category' _inherit = 'product.category'
image = fields.Binary(help='Show Image Category in Form View')
image_medium = fields.Binary(help='Show image category button in POS',
image = fields.Binary(help='Show Image Category in Form View',
inverse='_save_image_medium') inverse='_save_image_medium')
image_medium = fields.Binary(help='Show image category button in POS')
available_in_pos = fields.Boolean( available_in_pos = fields.Boolean(
string="Available in the Point of Sale", string="Available in the Point of Sale",
default=True, default=True,

Loading…
Cancel
Save