mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-23 19:32:00 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
|
|
@ -1,12 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<record id="seq_repair" model="ir.sequence">
|
||||
<field name="name">Repair Order</field>
|
||||
<field name="code">repair.order</field>
|
||||
<field name="prefix">RO/</field>
|
||||
<field name="padding">5</field>
|
||||
<field name="company_id" eval="False"/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<record id="mail_template_repair_quotation" model="mail.template">
|
||||
<field name="name">Repair: Quotation</field>
|
||||
<field name="model_id" ref="repair.model_repair_order"/>
|
||||
<field name="subject">{{ object.partner_id.name }} Repair Orders (Ref {{ object.name or 'n/a' }})</field>
|
||||
<field name="email_from">{{ (object.create_uid.email_formatted or user.email_formatted) }}</field>
|
||||
<field name="partner_to">{{ object.partner_id.id }}</field>
|
||||
<field name="description">Sent manually when clicking on "Send Quotation" on a repair order</field>
|
||||
<field name="body_html" type="html">
|
||||
<div style="margin: 0px; padding: 0px;">
|
||||
<p style="margin: 0px; padding: 0px;font-size: 13px;">
|
||||
Hello <t t-out="object.partner_id.name or ''">Brandon Freeman</t>,<br/>
|
||||
Here is your repair order <strong t-out="object.name or ''">RO/00004</strong>
|
||||
<t t-if="object.invoice_method != 'none'">
|
||||
amounting in <strong><t t-out="format_amount(object.amount_total, object.pricelist_id.currency_id) or ''">$ 100.00</t>.</strong><br/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
.<br/>
|
||||
</t>
|
||||
You can reply to this email if you have any questions.
|
||||
<br/><br/>
|
||||
Thank you,
|
||||
<t t-if="user.signature">
|
||||
<br />
|
||||
<t t-out="user.signature or ''">--<br/>Mitchell Admin</t>
|
||||
</t>
|
||||
</p>
|
||||
</div></field>
|
||||
<field name="report_template" ref="action_report_repair_order"/>
|
||||
<field name="report_name">{{ (object.name or '').replace('/','_') }}</field>
|
||||
<field name="lang">{{ object.partner_id.lang }}</field>
|
||||
<field name="auto_delete" eval="True"/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
24
odoo-bringout-oca-ocb-repair/repair/data/repair_data.xml
Normal file
24
odoo-bringout-oca-ocb-repair/repair/data/repair_data.xml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo noupdate="1">
|
||||
<!--
|
||||
Given that data are loaded before update of warehouses through the post_init_hook,
|
||||
we manually create the 'Repairs' Operation Type in warehouse0 here such that it's available
|
||||
when the initialization of data triggers the default method of the required field 'picking_type_id'.
|
||||
-->
|
||||
|
||||
<record id="picking_type_warehouse0_repair" model="stock.picking.type" forcecreate="0">
|
||||
<field name="name">Repairs</field>
|
||||
<field name="code">repair_operation</field>
|
||||
<field name="company_id" ref="base.main_company"/>
|
||||
<field name="default_location_src_id" ref="stock.stock_location_stock"/>
|
||||
<field name="default_location_dest_id" model="stock.location" search="[('usage', '=', 'production'), ('company_id', '=', obj().env.ref('base.main_company').id)]"/>
|
||||
<field name="default_remove_location_dest_id" model="stock.location" search="[('usage', '=', 'inventory'), ('company_id', '=', obj().env.ref('base.main_company').id)]"/>
|
||||
<field name="default_recycle_location_dest_id" ref="stock.stock_location_stock"/>
|
||||
<field name="sequence_code">RO</field>
|
||||
<field name="warehouse_id" ref="stock.warehouse0"/>
|
||||
</record>
|
||||
|
||||
<record id='stock.warehouse0' model='stock.warehouse'>
|
||||
<field name='repair_type_id' ref='repair.picking_type_warehouse0_repair'/>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -2,42 +2,29 @@
|
|||
<odoo>
|
||||
<record id="product_service_order_repair" model="product.product">
|
||||
<field name="name">Repair Services</field>
|
||||
<field name="categ_id" ref="product.product_category_3"/>
|
||||
<field name="categ_id" ref="product.product_category_services"/>
|
||||
<field name="standard_price">20.5</field>
|
||||
<field name="list_price">30.75</field>
|
||||
<field name="type">service</field>
|
||||
<field name="service_tracking">repair</field>
|
||||
</record>
|
||||
|
||||
<record id="repair_r1" model="repair.order">
|
||||
<field name="schedule_date" eval="DateTime.today()"/>
|
||||
<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="user_id"/>
|
||||
<field name="product_id" ref="product.product_product_3"/>
|
||||
<field name="product_uom" ref="uom.product_uom_unit"/>
|
||||
<field name="partner_invoice_id" ref="base.res_partner_address_1"/>
|
||||
<field name="location_id" ref="stock.stock_location_stock"/>
|
||||
<field name="operations" model="repair.line" eval="[(5, 0, 0), (0, 0, {
|
||||
<field name="picking_type_id" ref="picking_type_warehouse0_repair"/>
|
||||
<field name="move_ids" model="stock.move" eval="[(5, 0, 0), (0, 0, {
|
||||
'location_dest_id': obj().env.ref('product.product_product_11').property_stock_production.id,
|
||||
'location_id': obj().env.ref('stock.stock_location_stock').id,
|
||||
'name': obj().env.ref('product.product_product_11').get_product_multiline_description_sale(),
|
||||
'product_id': obj().env.ref('product.product_product_11').id,
|
||||
'product_uom': obj().env.ref('uom.product_uom_unit').id,
|
||||
'product_uom_qty': '1.0',
|
||||
'price_unit': 50.0,
|
||||
'state': 'draft',
|
||||
'type': 'add',
|
||||
'repair_line_type': 'add',
|
||||
'company_id': obj().env.ref('base.main_company').id,
|
||||
})]"/>
|
||||
<field name="fees_lines" model="repair.fee" eval="[(5, 0, 0), (0, 0, {
|
||||
'name': obj().env.ref('repair.product_service_order_repair').get_product_multiline_description_sale(),
|
||||
'product_id': obj().env.ref('repair.product_service_order_repair').id,
|
||||
'product_uom_qty': 1.0,
|
||||
'product_uom': obj().env.ref('uom.product_uom_unit').id,
|
||||
'company_id': obj().env.ref('base.main_company').id,
|
||||
'price_unit': 50.0,
|
||||
})]"/>
|
||||
<field name="partner_id" ref="base.res_partner_12"/>
|
||||
</record>
|
||||
|
||||
|
|
@ -45,30 +32,16 @@
|
|||
<field name="schedule_date" eval="DateTime.today()"/>
|
||||
<field name="product_id" ref="product.product_product_5"/>
|
||||
<field name="product_uom" ref="uom.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="user_id"/>
|
||||
<field name="partner_invoice_id" ref="base.res_partner_address_1"/>
|
||||
<field name="location_id" ref="stock.stock_location_stock"/>
|
||||
<field name="operations" model="repair.line" eval="[(5, 0, 0), (0, 0, {
|
||||
<field name="picking_type_id" ref="picking_type_warehouse0_repair"/>
|
||||
<field name="move_ids" model="stock.move" eval="[(5, 0, 0), (0, 0, {
|
||||
'location_dest_id': obj().env.ref('product.product_product_12').property_stock_production.id,
|
||||
'location_id': obj().env.ref('stock.stock_location_stock').id,
|
||||
'name': obj().env.ref('product.product_product_12').get_product_multiline_description_sale(),
|
||||
'price_unit': 50.0,
|
||||
'product_id': obj().env.ref('product.product_product_12').id,
|
||||
'product_uom': obj().env.ref('uom.product_uom_unit').id,
|
||||
'product_uom_qty': 1.0,
|
||||
'state': 'draft',
|
||||
'type': 'add',
|
||||
'company_id': obj().env.ref('base.main_company').id,
|
||||
})]"/>
|
||||
<field name="fees_lines" model="repair.fee" eval="[(5, 0, 0), (0, 0, {
|
||||
'name': obj().env.ref('repair.product_service_order_repair').get_product_multiline_description_sale(),
|
||||
'product_id': obj().env.ref('repair.product_service_order_repair').id,
|
||||
'product_uom_qty': 1.0,
|
||||
'product_uom': obj().env.ref('uom.product_uom_unit').id,
|
||||
'price_unit': 50.0,
|
||||
'repair_line_type': 'add',
|
||||
'company_id': obj().env.ref('base.main_company').id,
|
||||
})]"/>
|
||||
<field name="partner_id" ref="base.res_partner_12"/>
|
||||
|
|
@ -79,30 +52,16 @@
|
|||
<field name="schedule_date" eval="DateTime.today() + relativedelta(days=-5)"/>
|
||||
<field name="product_id" ref="product.product_product_6"/>
|
||||
<field name="product_uom" ref="uom.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="user_id"/>
|
||||
<field name="partner_invoice_id" ref="base.res_partner_address_1"/>
|
||||
<field name="location_id" ref="stock.stock_location_14"/>
|
||||
<field name="operations" model="repair.line" eval="[(5, 0, 0), (0, 0, {
|
||||
<field name="picking_type_id" ref="picking_type_warehouse0_repair"/>
|
||||
<field name="move_ids" model="stock.move" eval="[(5, 0, 0), (0, 0, {
|
||||
'location_dest_id': obj().env.ref('product.product_product_13').property_stock_production.id,
|
||||
'location_id': obj().env.ref('stock.stock_location_stock').id,
|
||||
'name': obj().env.ref('product.product_product_13').get_product_multiline_description_sale(),
|
||||
'price_unit': 50.0,
|
||||
'product_id': obj().env.ref('product.product_product_13').id,
|
||||
'product_uom': obj().env.ref('uom.product_uom_unit').id,
|
||||
'product_uom_qty': 1.0,
|
||||
'state': 'draft',
|
||||
'type': 'add',
|
||||
'company_id': obj().env.ref('base.main_company').id,
|
||||
})]"/>
|
||||
<field name="fees_lines" model="repair.fee" eval="[(5, 0, 0), (0, 0, {
|
||||
'name': obj().env.ref('repair.product_service_order_repair').get_product_multiline_description_sale(),
|
||||
'product_id': obj().env.ref('repair.product_service_order_repair').id,
|
||||
'product_uom_qty': 1.0,
|
||||
'product_uom': obj().env.ref('uom.product_uom_unit').id,
|
||||
'price_unit': 50.0,
|
||||
'repair_line_type': 'add',
|
||||
'company_id': obj().env.ref('base.main_company').id,
|
||||
})]"/>
|
||||
<field name="partner_id" ref="base.res_partner_12"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue