We would like to make the "no item found" screens more appealing.
Before this commit, it shows a small help tip in the top-left
corner of the screen, just below the "Create" button.
With this commit, these help tips have been replaced by onboarding
screens, which consist of a picture and some text below, both of which
are horizontally centered.
The texts have been slightly changed, so that they are shorter and clearer.
Considered modules:
(A)
account,
account_asset,
account_budget,
account_test,
account_voucher,
analytic
(B)
barcodes,
base,
base_automation,
board
(C)
calendar,
contacts,
crm
(D)
delivery
(E)
event
(F)
fleet
(G)
gamification,
google_drive
(H)
hr,
hr_attendance,
hr_contract,
hr_expense,
hr_gamification,
hr_holidays,
hr_payroll,
hr_recruitment,
hr_timesheet
(I)
im_livechat
(L)
l10n_fr_sale_closing,
link_tracker,
lunch
(M)
mail,
maintenance,
mass_mailing,
membership,
mrp
(N)
note
(P)
payment,
point_of_sale,
post_mercury,
pos_restaurant,
product,
project,
purchase,
purchase_requisition
(R)
rating,
repair,
resource
(S)
sale,
sale_timesheet,
sales_team,
stock,
stock_account,
stock_landed_costs,
stock_picking_batch,
survey
(U)
utm
(W)
web,
website,
website_blog,
website_customer,
website_event_track,
website_forum,
website_quote,
website_sale,
website_sale_digital,
website_slides
104 lines
5.9 KiB
XML
104 lines
5.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<!-- add google drive config field in user form -->
|
|
<record id="view_google_drive_config_tree" model="ir.ui.view">
|
|
<field name="name">google_drive.config.tree</field>
|
|
<field name="model">google.drive.config</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Google Drive Configuration">
|
|
<field name="name" />
|
|
<field name="model_id" />
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_google_drive_config_form" model="ir.ui.view">
|
|
<field name="name">google_drive.config.form</field>
|
|
<field name="model">google.drive.config</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Google Drive Configuration">
|
|
<field name="model" invisible="1" />
|
|
<group>
|
|
<field name="name" />
|
|
<field name="active" />
|
|
<field name="model_id"/>
|
|
<label for='filter_id' />
|
|
<div>
|
|
<field name='filter_id' />
|
|
<p class="oe_grey">
|
|
<b>To create a new filter:</b><br/>
|
|
- Go to the Odoo document you want to filter. For instance, go to Opportunities and search on Sales Department.<br/>
|
|
- In this "Search" view, select the option "Save Current Filter", enter the name (Ex: Sales Department)<br/>
|
|
- If you select "Share with all users", link of google document in "More" options will appear for all users in opportunities of Sales Department.<br/>
|
|
- If you don't select "Share with all users", link of google document in "More" options will not appear for other users in opportunities of Sales Department.<br/>
|
|
- If filter is not specified, link of google document will appear in "More" option for all users for all opportunities.
|
|
</p>
|
|
</div>
|
|
<field name='google_drive_template_url' placeholder="https://docs.google.com/document/d/1vOtpJK9scIQz6taD9tJRIETWbEw3fSiaQHArsJYcua4/edit" required="1" />
|
|
<field name='google_drive_resource_id' invisible="1" />
|
|
<label for='name_template' />
|
|
<div>
|
|
<field name='name_template' />
|
|
<p class="oe_grey">
|
|
The name of the attached document can use fixed or variable data. To distinguish between documents in
|
|
Google Drive, use fixed words and fields. For instance, in the example above, if you wrote Agrolait_%%(name)s_Sales
|
|
in the Google Drive name field, the document in your Google Drive and in Odoo attachment will be named
|
|
'Agrolait_SO0001_Sales'.
|
|
</p>
|
|
</div>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_google_drive_config_kanban" model="ir.ui.view">
|
|
<field name="name">google.drive.config.kanban</field>
|
|
<field name="model">google.drive.config</field>
|
|
<field name="arch" type="xml">
|
|
<kanban>
|
|
<field name="name"/>
|
|
<field name="active"/>
|
|
<field name="model_id"/>
|
|
<templates>
|
|
<t t-name="kanban-box">
|
|
<div t-attf-class="oe_kanban_global_click">
|
|
<div class="row o_kanban_record_title">
|
|
<div class="col-xs-4 text-center"><strong>Template</strong></div>
|
|
<div class="col-xs-4 text-center"><strong>Model</strong></div>
|
|
<div class="col-xs-4 text-center"><strong>Active</strong></div>
|
|
</div>
|
|
<hr class="mb4 mt4"/>
|
|
<div class="row o_kanban_record_subtitle">
|
|
<div class="col-xs-4 text-center"><field name="name"/></div>
|
|
<div class="col-xs-4 text-center"><field name="model_id"/></div>
|
|
<div class="col-xs-4 text-center">
|
|
<field name="active" widget="boolean"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</templates>
|
|
</kanban>
|
|
</field>
|
|
</record>
|
|
|
|
<record id='action_google_drive_users_config' model='ir.actions.act_window'>
|
|
<field name='name'>Templates</field>
|
|
<field name='res_model'>google.drive.config</field>
|
|
<field name='type'>ir.actions.act_window</field>
|
|
<field name='view_type'>form</field>
|
|
<field name="view_mode">tree,kanban,form</field>
|
|
<field name='view_id' ref='view_google_drive_config_tree' />
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
Add a new template
|
|
</p>
|
|
<p>
|
|
Link your own google drive templates to any record of Odoo. If you have really specific documents you want your collaborator fill in, e.g. Use a spreadsheet to control the quality of your product or review the delivery checklist for each order in a foreign country, ... Its very easy to manage them, link them to Odoo and use them to collaborate with your employees.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|