- Got rid of planned_date_begin and planned_date_end fields. Commented out all related code for now. These were fields pending actual feature development anyway. - Added a product cateogory with income account and expense account to the _generate_product common test method. This fixes an error where Odoo complained about needing a due date for lines with account type = 'asset_receivable'. - Rewrote and refactored Task.action_fsm_validate to have it match with code from industry_fsm in 16.0. NOTE: This change depends on code pushed in: - sale_workflow [16.0 ba7402471] - odoo_addons [16.0 766cd78] - PurchasedAddons [16.0 e5e9b7b]
55 lines
No EOL
2.9 KiB
XML
55 lines
No EOL
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record id="sale_order_form_inherit" model="ir.ui.view">
|
|
<field name="name">bemade_fsm.sale_order.form</field>
|
|
<field name="model">sale.order</field>
|
|
<field name="inherit_id" ref="sale.view_order_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//page[@name='other_information']" position="before">
|
|
<page name="field_service" string="Field Service">
|
|
<group name="fsm_visits" string="Service Visits">
|
|
<field name="visit_ids"
|
|
context="{'tree_view_ref': 'bemade_fsm.bemade_fsm_visit_tree'}"/>
|
|
</group>
|
|
<group name="field_service_info" string="Contacts and Equipment">
|
|
<field name="valid_equipment_ids" invisible="1"/>
|
|
<field name="summary_equipment_ids"
|
|
context="{'default_partner_location_id': partner_shipping_id,}"
|
|
widget="many2many_tags"
|
|
groups="account.group_delivery_invoice_address"/>
|
|
<field name="site_contacts"
|
|
context="{'tree_view_ref': 'bemade_fsm.fsm_contacts_view_tree'}"/>
|
|
<field name="work_order_contacts"
|
|
context="{'tree_view_ref': 'bemade_fsm.fsm_contacts_view_tree'}"/>
|
|
|
|
<field name="default_equipment_ids"
|
|
context="{'default_partner_location_id': partner_shipping_id,}"
|
|
widget="many2many_tags"
|
|
domain="[('id', 'in', valid_equipment_ids)]"
|
|
groups="account.group_delivery_invoice_address"/>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
<xpath expr="//tree//field[@name='name']" position="after">
|
|
<field name="valid_equipment_ids" invisible="1"/>
|
|
<field name="equipment_ids"
|
|
widget="many2many_tags"
|
|
domain="[('id', 'in', valid_equipment_ids)]"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<record id="bemade_fsm_visit_tree" model="ir.ui.view">
|
|
<field name="name">bemade_fsm.visit.tree</field>
|
|
<field name="model">bemade_fsm.visit</field>
|
|
<field name="arch" type="xml">
|
|
<tree editable="bottom">
|
|
<field name="label"/>
|
|
<field name="approx_date"/>
|
|
<field name="is_completed" widget="boolean"/>
|
|
<field name="is_invoiced" widget="boolean"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo> |