hunk.code_window:                 resp = pm.request('POST',
                                      server,
                                      fields={'mac': mac})
               except:
                   _logger.warning('Could not reach configured server')
  
hunk.labels: keep keep keep replace keep
hunk.after_edit:             except Exception as e:
                   req = ''
  
hunk.file_path: addons/hw_posbox_homepage/controllers/main.py
hunk.type: replace
file: <?xml version="1.0" encoding="utf-8"?>
  <odoo>
  
      <record id="product_attribute_category_duration" model="product.attribute.category">
          <field name="name">Duration</field>
          <field name="sequence">20</field>
      </record>
      <record id="product.product_attribute_3" model="product.attribute">
          <field name="category_id" ref="product_attribute_category_duration"/>
      </record>
  
  
      <record id="product_attribute_category_2" model="product.attribute.category">
          <field name="name">Dimensions</field>
          <field name="sequence">7</field>
      </record>
  
      <record id="product.product_attribute_1" model="product.attribute">
          <field name="category_id" ref="product_attribute_category_general_features"/>
      </record>
      <record id="product.product_attribute_2" model="product.attribute">
          <field name="category_id" ref="product_attribute_category_general_features"/>
      </record>
  
      <record id="product_attribute_1" model="product.attribute">
          <field name="name">Brand</field>
          <field name="category_id" ref="product_attribute_category_general_features"/>
      </record>
      <record id="product_attribute_value_1" model="product.attribute.value">
          <field name="name">Apple</field>
          <field name="attribute_id" ref="product_attribute_1"/>
      </record>
  
      <record id="product_attribute_7" model="product.attribute">
          <field name="name">Weight</field>
          <field name="category_id" ref="product_attribute_category_2"/>
      </record>
      <record id="product_attribute_value_7" model="product.attribute.value">
          <field name="name">308 g</field>
          <field name="attribute_id" ref="product_attribute_7"/>
      </record>
  
      <record id="product_attribute_8" model="product.attribute">
          <field name="name">Dimensions</field>
          <field name="category_id" ref="product_attribute_category_2"/>
      </record>
      <record id="product_attribute_value_8" model="product.attribute.value">
          <field name="name">134.7 x 200 x 7.2 mm</field>
          <field name="attribute_id" ref="product_attribute_8"/>
      </record>
  
      <record id="product_template_attribute_line_1" model="product.template.attribute.line">
          <field name="product_tmpl_id" ref="product.product_product_6_product_template"/>
          <field name="attribute_id" ref="product_attribute_1"/>
          <field name="value_ids" eval="[(6,0,[ref('product_attribute_value_1')])]"/>
      </record>
      <record id="product_template_attribute_line_7" model="product.template.attribute.line">
          <field name="product_tmpl_id" ref="product.product_product_6_product_template"/>
          <field name="attribute_id" ref="product_attribute_7"/>
          <field name="value_ids" eval="[(6,0,[ref('product_attribute_value_7')])]"/>
      </record>
      <record id="product_template_attribute_line_8" model="product.template.attribute.line">
           <field name="product_tmpl_id" ref="product.product_product_6_product_template"/>
          <field name="attribute_id" ref="product_attribute_8"/>
          <field name="value_ids" eval="[(6,0,[ref('product_attribute_value_8')])]"/>
      </record>
  
      <function model="product.template" name="create_variant_ids">
          <value model="product.template" eval="[ref('product.product_product_6_product_template')]" />
      </function>
  </odoo>
  