[IMP] spreadsheet: add icons for "see records" and "set as filter" action
Task Description This PR aims to add two new icons in the context menu of the spreadsheet, for the see records/see properties and the set as filter actions closes odoo/odoo#120543 Related: odoo/enterprise#40713 Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
This commit is contained in:
@@ -40,6 +40,7 @@ cellMenuRegistry.add("list_see_record", {
|
||||
const position = env.model.getters.getActivePosition();
|
||||
return SEE_RECORD_LIST_VISIBLE(position, env);
|
||||
},
|
||||
icon: "o-spreadsheet-Icon.SEE_RECORDS",
|
||||
});
|
||||
|
||||
inverseCommandRegistry
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<templates>
|
||||
<t t-name="o-spreadsheet-Icon.SEE_RECORDS" owl="1">
|
||||
<svg class="o-icon">
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M9.05 11.25c-1.49 0-2.7-1.21-2.7-2.7s1.21-2.7 2.7-2.7 2.7 1.21 2.7 2.7-1.21 2.7-2.7 2.7m0-1.8c.5 0 .9-.4.9-.9s-.4-.9-.9-.9-.9.4-.9.9.4.9.9.9M9 3.15c-3.75 0-6.7 2.1-8 5.06 1.3 2.97 4.25 5.74 8 5.74s6.7-2.77 8-5.74c-1.3-2.96-4.25-5.06-8-5.06m0 9c-2.84 0-4.78-1.66-6.02-3.94C4.22 5.94 6.16 4.95 9 4.95s4.8.99 6.03 3.26c-1.23 2.27-3.19 3.94-6.03 3.94"
|
||||
/>
|
||||
</svg>
|
||||
</t>
|
||||
</templates>
|
||||
@@ -38,6 +38,7 @@ cellMenuRegistry.add("pivot_see_records", {
|
||||
const position = env.model.getters.getActivePosition();
|
||||
return SEE_RECORDS_PIVOT_VISIBLE(position, env);
|
||||
},
|
||||
icon: "o-spreadsheet-Icon.SEE_RECORDS",
|
||||
});
|
||||
|
||||
inverseCommandRegistry
|
||||
|
||||
Reference in New Issue
Block a user