[FIX] sale: Apply several fix on sales tour

1. Lead to loose the tour: Remove the step of the tour that asks
to set an address (the address is auto-completed at free trial
based on domain name).

2. Bug: At step 3, it redirects to the
invoice settings to select a localization, when you click on
"install more packages", you are sent back to the sales app.
--> this bug is related to res_config_settings.js from base addon.
I tried to fix this bug by adding a data-attribute "discard" in the
res_config_settings_views and checking this additional condition in
the js.

3. Bug: Tour blocks at last step "send by email" on quotation.
After clicking on "sent" on the pop-up, there should be rainbow
effect to mark the end of the tour.

4. Bug: Sale order line: fix the blue color on Invoiced Quantity
only, instead of the full line

5. Put the "sample product" in active= false (it's necessary for
the sample invoice but should not be visible to the user, they
should create their own)

6. Merge the 2 dates fields related to expected delivery on sale.order
--> since other modules extends this module, I made the field
expected_date invisible and put the same value in both fields. This
value is the max of the order_lines.expected_date

Taskid: 2277314
X-original-commit: b9ffda35ecf31f3af52bf04f23c6794429548d23
This commit is contained in:
Pierre Collinet (pic)
2020-09-10 09:44:37 +00:00
parent 641e967652
commit 365934bada
+5
View File
@@ -534,6 +534,7 @@
string="Invoiced"
attrs="{'column_invisible': [('parent.state', 'not in', ['sale', 'done'])]}"
optional="show"
decoration-info="(not display_type and invoice_status == 'to invoice')"
/>
<field name="qty_to_invoice" invisible="1"/>
<field name="product_uom_readonly" invisible="1"/>
@@ -677,8 +678,12 @@
<group name="sale_shipping">
<label for="commitment_date" string="Delivery Date"/>
<div name="commitment_date_div" class="o_row">
<<<<<<< HEAD
<field name="commitment_date"/>
<span name="expected_date_span" class="text-muted">Expected: <field name="expected_date" widget="date"/></span>
=======
<field name="commitment_date"/> <field name="expected_date" invisible="1"/>
>>>>>>> d926c174b2c... temp
</div>
</group>
<group string="Reporting" name="sale_reporting" groups="base.group_no_one">