Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bees_custom/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"depends": [
"point_of_sale",
"account_invoice_date_required",
"beesdoo_product_info_screen",
"product_info_screen",
"pos_mail_receipt",
],
"author": "Coop IT Easy SC",
Expand Down
4 changes: 2 additions & 2 deletions bees_custom/views/products.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<field name="model">product.template</field>
<field
name="inherit_id"
ref="beesdoo_product_info_screen.view_product_information_read_only_form"
ref="product_info_screen.view_product_information_read_only_form"
/>
<field name="arch" type="xml">
<field name="default_code" position="attributes">
Expand All @@ -33,7 +33,7 @@
<field name="model">product.template</field>
<field
name="inherit_id"
ref="beesdoo_product_info_screen.view_product_information_read_only_tree"
ref="product_info_screen.view_product_information_read_only_tree"
/>
<field name="arch" type="xml">
<field name="default_code" position="attributes">
Expand Down
8 changes: 2 additions & 6 deletions bees_custom/wizard/label_printing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@ class RequestLabelPrintingWizard(models.TransientModel):
@api.multi
def request_printing(self):
self.ensure_one()
if not self.env.user.has_group(
"beesdoo_product_info_screen.group_product_info_user"
):
if not self.env.user.has_group("product_info_screen.group_product_info_user"):
super().request_printing()
else:
self.product_ids.sudo().write({"label_to_be_printed": True})

@api.multi
def set_as_printed(self):
self.ensure_one()
if not self.env.user.has_group(
"beesdoo_product_info_screen.group_product_info_user"
):
if not self.env.user.has_group("product_info_screen.group_product_info_user"):
super().set_as_printed()
else:
self.product_ids.sudo().write(
Expand Down