mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-24 06:12:03 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 2.3 KiB |
|
|
@ -1 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="70" height="70" viewBox="0 0 70 70"><defs><path id="a" d="M4 0h61c4 0 5 1 5 5v60c0 4-1 5-5 5H4c-3 0-4-1-4-5V5c0-4 1-5 4-5z"/><linearGradient id="c" x1="100%" x2="0%" y1="0%" y2="100%"><stop offset="0%" stop-color="#7CC098"/><stop offset="100%" stop-color="#5F8A71"/></linearGradient><path id="d" d="M18.952 29.454h8.316l3.163-4.327-3.163-4.327h-8.316c-.74 0-1.192-.791-.81-1.411C20.135 16.159 23.76 14 27.9 14c6.283 0 11.426 5.059 11.387 11.198-.04 6.112-5.122 11.055-11.387 11.055-4.145 0-7.773-2.164-9.764-5.399-.38-.616.08-1.4.816-1.4zm14.994 8.574l-1.42-1.388c3.258-1.25 5.88-3.81 7.157-6.993l15.835 15.472a4.866 4.866 0 0 1 0 6.994c-1.977 1.931-5.181 1.931-7.157 0l-2.487-2.43c-.735-6.3-5.734-11.243-11.928-11.655zm14.83 9.352c0 1.024.85 1.854 1.898 1.854s1.898-.83 1.898-1.854-.85-1.854-1.898-1.854-1.898.83-1.898 1.854zm-21.772 3.937a7.262 7.262 0 0 1 0-2.634l-1.6-.924a.451.451 0 0 1-.205-.525 9.294 9.294 0 0 1 2.053-3.55.451.451 0 0 1 .556-.084l1.599.923a7.19 7.19 0 0 1 2.28-1.319v-1.846c0-.21.147-.393.353-.44a9.382 9.382 0 0 1 4.1 0 .45.45 0 0 1 .351.44v1.846a7.19 7.19 0 0 1 2.28 1.319l1.6-.923a.451.451 0 0 1 .556.084 9.294 9.294 0 0 1 2.053 3.55.451.451 0 0 1-.205.525l-1.6.924c.16.87.16 1.763 0 2.634l1.6.924a.451.451 0 0 1 .205.525 9.294 9.294 0 0 1-2.053 3.55.451.451 0 0 1-.557.084l-1.598-.923a7.19 7.19 0 0 1-2.28 1.319v1.846a.451.451 0 0 1-.353.44 9.382 9.382 0 0 1-4.1 0 .45.45 0 0 1-.352-.44v-1.846a7.19 7.19 0 0 1-2.28-1.319l-1.598.923a.451.451 0 0 1-.557-.084 9.294 9.294 0 0 1-2.053-3.55.451.451 0 0 1 .205-.525l1.6-.924zM31 50a3.129 3.129 0 0 0 3.125 3.125A3.129 3.129 0 0 0 37.25 50a3.129 3.129 0 0 0-3.125-3.125A3.129 3.129 0 0 0 31 50z"/><path id="e" d="M18.952 27.454h8.316l3.163-4.327-3.163-4.327h-8.316c-.74 0-1.192-.791-.81-1.411C20.135 14.159 23.76 12 27.9 12c6.283 0 11.426 5.059 11.387 11.198-.04 6.112-5.122 11.055-11.387 11.055-4.145 0-7.773-2.164-9.764-5.399-.38-.616.08-1.4.816-1.4zm14.994 8.574l-1.42-1.388c3.258-1.25 5.88-3.81 7.157-6.993l15.835 15.472a4.866 4.866 0 0 1 0 6.994c-1.977 1.931-5.181 1.931-7.157 0l-2.487-2.43c-.735-6.3-5.734-11.243-11.928-11.655zm14.83 9.352c0 1.024.85 1.854 1.898 1.854s1.898-.83 1.898-1.854-.85-1.854-1.898-1.854-1.898.83-1.898 1.854zm-21.772 3.937a7.262 7.262 0 0 1 0-2.634l-1.6-.924a.451.451 0 0 1-.205-.525 9.294 9.294 0 0 1 2.053-3.55.451.451 0 0 1 .556-.084l1.599.923a7.19 7.19 0 0 1 2.28-1.319v-1.846c0-.21.147-.393.353-.44a9.382 9.382 0 0 1 4.1 0 .45.45 0 0 1 .351.44v1.846a7.19 7.19 0 0 1 2.28 1.319l1.6-.923a.451.451 0 0 1 .556.084 9.294 9.294 0 0 1 2.053 3.55.451.451 0 0 1-.205.525l-1.6.924c.16.87.16 1.763 0 2.634l1.6.924a.451.451 0 0 1 .205.525 9.294 9.294 0 0 1-2.053 3.55.451.451 0 0 1-.557.084l-1.598-.923a7.19 7.19 0 0 1-2.28 1.319v1.846a.451.451 0 0 1-.353.44 9.382 9.382 0 0 1-4.1 0 .45.45 0 0 1-.352-.44v-1.846a7.19 7.19 0 0 1-2.28-1.319l-1.598.923a.451.451 0 0 1-.557-.084 9.294 9.294 0 0 1-2.053-3.55.451.451 0 0 1 .205-.525l1.6-.924zM31 48a3.129 3.129 0 0 0 3.125 3.125A3.129 3.129 0 0 0 37.25 48a3.129 3.129 0 0 0-3.125-3.125A3.129 3.129 0 0 0 31 48z"/></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"/></mask><g mask="url(#b)"><path fill="url(#c)" d="M0 0H70V70H0z"/><path fill="#FFF" fill-opacity=".383" d="M4 1h61c2.667 0 4.333.667 5 2V0H0v3c.667-1.333 2-2 4-2z"/><path fill="#393939" d="M4 69c-2 0-4-1-4-4V38.984l18.987-22.726L24 13l31 30 1.03 6.473L42.838 69H4z" opacity=".324"/><path fill="#000" fill-opacity=".383" d="M4 69h61c2.667 0 4.333-1 5-3v4H0v-4c.667 2 2 3 4 3z"/><use fill="#000" fill-rule="nonzero" opacity=".3" xlink:href="#d"/><use fill="#FFF" fill-rule="nonzero" xlink:href="#e"/></g></g></svg>
|
||||
<svg width="50" height="50" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"><path d="M29.319 6.862c3.816-3.816 10.003-3.816 13.819 0 3.816 3.816 3.816 10.003 0 13.82L20.68 43.137c-3.816 3.816-10.003 3.816-13.819 0-3.816-3.816-3.816-10.003 0-13.82L29.32 6.863Z" fill="#FC868B"/><path d="M43.138 29.319c3.816 3.816 3.816 10.003 0 13.819-3.816 3.816-10.003 3.816-13.82 0L6.863 20.68c-3.816-3.816-3.816-10.003 0-13.819 3.816-3.816 10.003-3.816 13.82 0L43.138 29.32Z" fill="#1AD3BB"/><path d="M24.999 11.18 11.179 25 25 38.82 38.82 25 25 11.18Z" fill="#1A6F66"/></svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 571 B |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
|
|
@ -0,0 +1,13 @@
|
|||
import { ProductCatalogKanbanController } from "@product/product_catalog/kanban_controller";
|
||||
import { patch } from "@web/core/utils/patch";
|
||||
import { _t } from "@web/core/l10n/translation";
|
||||
|
||||
patch(ProductCatalogKanbanController.prototype, {
|
||||
_defineButtonContent() {
|
||||
if (this.orderResModel === "repair.order") {
|
||||
this.buttonString = _t("Back to Repair");
|
||||
} else {
|
||||
super._defineButtonContent();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import { ProductCatalogOrderLine } from "@product/product_catalog/order_line/order_line";
|
||||
import { patch } from "@web/core/utils/patch";
|
||||
|
||||
patch(ProductCatalogOrderLine.prototype, {
|
||||
get showPrice() {
|
||||
return super.showPrice && this.env.orderResModel !== "repair.order";
|
||||
}
|
||||
});
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
import { registry } from "@web/core/registry";
|
||||
|
||||
registry.category("web_tour.tours").add('test_repair_without_product_in_parts', {
|
||||
|
||||
steps: () => [
|
||||
{
|
||||
content: "Click product_id field",
|
||||
trigger: "div[name='move_ids'] .o_data_row td.o_data_cell[name=product_id]",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Unset the product",
|
||||
trigger: "div[name=move_ids] div[name=product_id] input",
|
||||
run: "edit",
|
||||
},
|
||||
{
|
||||
content: "Click partner field",
|
||||
trigger: ".o_field_widget[name=partner_id] input",
|
||||
run: "click",
|
||||
},
|
||||
// Note: Selecting the partner is only to trigger the compute;
|
||||
// this could be done by modifying any other field.
|
||||
{
|
||||
content: "Select partner",
|
||||
trigger: ".ui-menu-item > a:contains('A Partner')",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Click the product field",
|
||||
trigger: "div[name=move_ids] .o_field_widget[name=product_id] input",
|
||||
run: "edit [1234] A Product",
|
||||
},
|
||||
{
|
||||
content: "Select a product",
|
||||
trigger:".ui-menu-item > a:contains('[1234] A Product')",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Save the repair order",
|
||||
trigger: ".o_form_button_save",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "wait for save completion",
|
||||
trigger: ".o_form_saved",
|
||||
},
|
||||
]});
|
||||
Loading…
Add table
Add a link
Reference in a new issue