Skip to content
Snippets Groups Projects
Commit bf732d96 authored by Yannick Tivisse's avatar Yannick Tivisse
Browse files

[IMP] mrp_repair: Convert yml demo file to xml

parent e9895dbc
Branches
Tags
No related merge requests found
......@@ -35,7 +35,7 @@ The following topics are covered by this module:
'data/ir_sequence_data.xml',
'data/mrp_repair_data.xml',
],
'demo': ['data/mrp_repair_demo.yml'],
'demo': ['data/mrp_repair_demo.xml'],
'test': [],
'installable': True,
'auto_install': False,
......
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="mrp_repair_rmrp1" model="mrp.repair">
<field name="address_id" ref="base.res_partner_address_1"/>
<field name="guarantee_limit" eval="datetime.today().strftime('%Y-%m-%d')"/>
<field name="invoice_method">none</field>
<field name="product_id" ref="product.product_product_3"/>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="partner_invoice_id" ref="base.res_partner_address_1"/>
<field name="location_dest_id" ref="base.res_partner_address_1"/>
<field name="location_id" ref="stock.stock_location_stock"/>
<field name="operations" model="mrp.repair.line" eval="[(5, 0, 0), (0, 0, {
'location_dest_id': obj().env.ref('stock.location_production').id,
'location_id': obj().env.ref('stock.stock_location_stock').id,
'name': '[M-Las] Mouse, Laser',
'product_id': obj().env.ref('product.product_product_11').id,
'product_uom': obj().env.ref('product.product_uom_unit').id,
'product_uom_qty': '1.0',
'price_unit': 50.0,
'state': 'draft',
'type': 'add',
})]"/>
<field name="fees_lines" model="mrp.repair.fee" eval="[(5, 0, 0), (0, 0, {
'name': 'Laptop formatting fees',
'product_id': obj().env.ref('product.product_product_11c').id,
'product_uom_qty': 1.0,
'product_uom': obj().env.ref('product.product_uom_unit').id,
'price_unit': 50.0,
})]"/>
<field name="partner_id" ref="base.res_partner_12"/>
</record>
<record id="mrp_repair_rmrp0" model="mrp.repair">
<field name="product_id" ref="product.product_product_5"/>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="address_id" ref="base.res_partner_address_1"/>
<field name="guarantee_limit" eval="datetime.today().strftime('%Y-%m-%d')"/>
<field name="invoice_method">after_repair</field>
<field name="partner_invoice_id" ref="base.res_partner_address_1"/>
<field name="location_dest_id" ref="stock.stock_location_14"/>
<field name="location_id" ref="stock.stock_location_stock"/>
<field name="operations" model="mrp.repair.line" eval="[(5, 0, 0), (0, 0, {
'location_dest_id': obj().env.ref('stock.location_production').id,
'location_id': obj().env.ref('stock.stock_location_stock').id,
'name': '[M-Wir] Mouse, Wireless',
'price_unit': 50.0,
'product_id': obj().env.ref('product.product_product_12').id,
'product_uom': obj().env.ref('product.product_uom_unit').id,
'product_uom_qty': 1.0,
'state': 'draft',
'type': 'add',
})]"/>
<field name="fees_lines" model="mrp.repair.fee" eval="[(5, 0, 0), (0, 0, {
'name': 'Monitor screen repair',
'product_id': obj().env.ref('product.product_product_5c').id,
'product_uom_qty': 1.0,
'product_uom': obj().env.ref('product.product_uom_unit').id,
'price_unit': 50.0,
})]"/>
<field name="partner_id" ref="base.res_partner_12"/>
</record>
<record id="mrp_repair_rmrp2" model="mrp.repair">
<field name="product_id" ref="product.product_product_6"/>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="address_id" ref="base.res_partner_address_1"/>
<field name="guarantee_limit" eval="datetime.today().strftime('%Y-%m-%d')"/>
<field name="invoice_method">b4repair</field>
<field name="partner_invoice_id" ref="base.res_partner_address_1"/>
<field name="location_dest_id" ref="stock.stock_location_stock"/>
<field name="location_id" ref="stock.stock_location_14"/>
<field name="operations" model="mrp.repair.line" eval="[(5, 0, 0), (0, 0, {
'location_dest_id': obj().env.ref('stock.location_production').id,
'location_id': obj().env.ref('stock.stock_location_stock').id,
'name': '[RAM-SR5] RAM DDR SR5',
'price_unit': 50.0,
'product_id': obj().env.ref('product.product_product_13').id,
'product_uom': obj().env.ref('product.product_uom_unit').id,
'product_uom_qty': 1.0,
'state': 'draft',
'type': 'add',
})]"/>
<field name="fees_lines" model="mrp.repair.fee" eval="[(5, 0, 0), (0, 0, {
'name': 'SIM card holder repair',
'product_id': obj().env.ref('product.product_product_6c').id,
'product_uom_qty': 1.0,
'product_uom': obj().env.ref('product.product_uom_unit').id,
'price_unit': 50.0,
})]"/>
<field name="partner_id" ref="base.res_partner_12"/>
</record>
</odoo>
-
!record {model: mrp.repair, id: mrp_repair_rmrp1}:
address_id: base.res_partner_address_1
guarantee_limit: !eval datetime.today().strftime("%Y-%m-%d")
invoice_method: 'none'
product_id: product.product_product_3
product_uom: product.product_uom_unit
partner_invoice_id: base.res_partner_address_1
location_dest_id: stock.stock_location_14
location_id: stock.stock_location_stock
operations:
- location_dest_id: stock.location_production
location_id: stock.stock_location_stock
name: '[M-Las] Mouse, Laser'
price_unit: 50.0
product_id: product.product_product_11
product_uom: product.product_uom_unit
product_uom_qty: 1.0
state: draft
type: add
fees_lines:
- name: 'Laptop formatting fees'
product_id: product.product_product_11c
product_uom_qty: 1.0
product_uom: product.product_uom_unit
price_unit: 50.0
partner_id: base.res_partner_12
-
!record {model: mrp.repair, id: mrp_repair_rmrp0}:
product_id: product.product_product_5
product_uom: product.product_uom_unit
address_id: base.res_partner_address_1
guarantee_limit: !eval datetime.today().strftime("%Y-%m-%d")
invoice_method: 'after_repair'
partner_invoice_id: base.res_partner_address_1
location_dest_id: stock.stock_location_14
location_id: stock.stock_location_stock
operations:
- location_dest_id: stock.location_production
location_id: stock.stock_location_stock
name: '[M-Wir] Mouse, Wireless'
price_unit: 50.0
product_id: product.product_product_12
product_uom: product.product_uom_unit
product_uom_qty: 1.0
state: draft
type: add
fees_lines:
- name: 'Monitor screen repair'
product_id: product.product_product_5c
product_uom_qty: 1.0
product_uom: product.product_uom_unit
price_unit: 50.0
partner_id: base.res_partner_12
-
!record {model: mrp.repair, id: mrp_repair_rmrp2}:
product_id: product.product_product_6
product_uom: product.product_uom_unit
address_id: base.res_partner_address_1
guarantee_limit: !eval datetime.today().strftime("%Y-%m-%d")
invoice_method: 'b4repair'
partner_invoice_id: base.res_partner_address_1
location_dest_id: stock.stock_location_stock
location_id: stock.stock_location_14
operations:
- location_dest_id: stock.location_production
location_id: stock.stock_location_stock
name: '[RAM-SR5] RAM DDR SR5'
price_unit: 50.0
product_id: product.product_product_13
product_uom: product.product_uom_unit
product_uom_qty: 1.0
state: draft
type: add
fees_lines:
- name: 'SIM card holder repair'
product_id: product.product_product_6c
product_uom_qty: 1.0
product_uom: product.product_uom_unit
price_unit: 50.0
partner_id: base.res_partner_12
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment