-
-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] quality_control_oca: inspection access buttons - moved to XML a…
…ctions
- Loading branch information
Showing
8 changed files
with
198 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2023 Solvos Consultoría Informática, S.L. | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<record model="ir.ui.view" id="product_normal_form_view"> | ||
<field name="name">product.product.form (in quality_control_oca)</field> | ||
<field name="model">product.product</field> | ||
<field name="inherit_id" ref="product.product_normal_form_view" /> | ||
<field | ||
name="groups_id" | ||
eval="[(4, ref('quality_control_oca.group_quality_control_user'))]" | ||
/> | ||
<field name="arch" type="xml"> | ||
<div name="button_box" position="inside"> | ||
<button | ||
class="oe_inline oe_stat_button" | ||
type="action" | ||
name="%(action_qc_inspection_product_all)d" | ||
icon="fa-list" | ||
> | ||
<field | ||
name="created_inspections" | ||
widget="statinfo" | ||
string="inspections" | ||
/> | ||
</button> | ||
<button | ||
class="oe_inline oe_stat_button" | ||
type="action" | ||
name="%(action_qc_inspection_product_done)d" | ||
icon="fa-pencil" | ||
> | ||
<field | ||
name="done_inspections" | ||
widget="statinfo" | ||
string="inspections" | ||
/> | ||
</button> | ||
<button | ||
class="oe_inline oe_stat_button" | ||
type="action" | ||
name="%(action_qc_inspection_product_passed)d" | ||
icon="fa-thumbs-o-up" | ||
> | ||
<field | ||
name="passed_inspections" | ||
widget="statinfo" | ||
string="inspections" | ||
/> | ||
</button> | ||
<button | ||
class="oe_inline oe_stat_button" | ||
type="action" | ||
name="%(action_qc_inspection_product_failed)d" | ||
icon="fa-thumbs-o-down" | ||
> | ||
<field | ||
name="failed_inspections" | ||
widget="statinfo" | ||
string="inspections" | ||
/> | ||
</button> | ||
</div> | ||
</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.