Browse Source

[REF] format xml files

pull/142/head
robin.keunen 4 years ago
parent
commit
fec11128dc
  1. 40
      beesdoo_account/views/account_invoice.xml
  2. 38
      beesdoo_base/demo/cooperators.xml
  3. 96
      beesdoo_base/report/beescard.xml
  4. 2
      beesdoo_base/security/groups.xml
  5. 48
      beesdoo_base/views/partner.xml
  6. 90
      beesdoo_base/wizard/views/member_card.xml
  7. 10
      beesdoo_base/wizard/views/partner.xml
  8. 42
      beesdoo_easy_my_coop/demo/product_share.xml
  9. 18
      beesdoo_easy_my_coop/views/product.xml
  10. 3
      beesdoo_easy_my_coop/views/res_company.xml
  11. 43
      beesdoo_easy_my_coop/views/subscription_templates.xml
  12. 20
      beesdoo_inventory/views/stock.xml
  13. 34
      beesdoo_pos/static/src/xml/templates.xml
  14. 5
      beesdoo_pos/views/beesdoo_pos.xml
  15. 22
      beesdoo_product/data/barcode_rule.xml
  16. 132
      beesdoo_product/data/product_label.xml
  17. 3
      beesdoo_product/views/assets.xml
  18. 121
      beesdoo_product/views/beesdoo_product.xml
  19. 72
      beesdoo_product/wizard/views/label_printing_utils.xml
  20. 12
      beesdoo_product_usability/views/beesdoo_product.xml
  21. 24
      beesdoo_purchase/report/report_purchaseorder.xml
  22. 17
      beesdoo_purchase/views/purchase_order.xml
  23. 38
      beesdoo_shift/data/cron.xml
  24. 11
      beesdoo_shift/data/mail_template.xml
  25. 2
      beesdoo_shift/data/system_parameter.xml
  26. 61
      beesdoo_shift/demo/workers.xml
  27. 52
      beesdoo_shift/security/group.xml
  28. 162
      beesdoo_shift/views/cooperative_status.xml
  29. 4
      beesdoo_shift/views/exempt_reason.xml
  30. 41
      beesdoo_shift/views/menu.xml
  31. 28
      beesdoo_shift/views/planning.xml
  32. 186
      beesdoo_shift/views/task.xml
  33. 158
      beesdoo_shift/views/task_template.xml
  34. 14
      beesdoo_shift/wizard/assign_super_coop.xml
  35. 22
      beesdoo_shift/wizard/batch_template.xml
  36. 12
      beesdoo_shift/wizard/extension.xml
  37. 8
      beesdoo_shift/wizard/holiday.xml
  38. 8
      beesdoo_shift/wizard/instanciate_planning.xml
  39. 46
      beesdoo_shift/wizard/subscribe.xml
  40. 10
      beesdoo_shift/wizard/temporary_exemption.xml
  41. 17
      beesdoo_shift_attendance/data/cron.xml
  42. 5
      beesdoo_shift_attendance/data/mail_template.xml
  43. 3
      beesdoo_shift_attendance/data/system_parameter.xml
  44. 5
      beesdoo_shift_attendance/demo/users.xml
  45. 14
      beesdoo_shift_attendance/security/group.xml
  46. 131
      beesdoo_shift_attendance/views/attendance_sheet.xml
  47. 178
      beesdoo_shift_attendance/views/res_config_settings_view.xml
  48. 20
      beesdoo_shift_attendance/wizard/generate_missing_attendance_sheets.xml
  49. 24
      beesdoo_shift_attendance/wizard/validate_attendance_sheet.xml
  50. 3
      beesdoo_stock/views/stock_view.xml
  51. 2
      beesdoo_stock_coverage/data/cron.xml
  52. 54
      beesdoo_stock_coverage/views/product_template_view.xml
  53. 46
      beesdoo_website_eater/views/beesdoo_website_eater_templates.xml
  54. 37
      beesdoo_website_posorder_amount/templates/portal_posorder_amount.xml
  55. 13
      beesdoo_website_shift/data/res_config_data.xml
  56. 384
      beesdoo_website_shift/views/my_shift_website_templates.xml
  57. 64
      beesdoo_website_shift/views/res_config_views.xml
  58. 40
      beesdoo_website_shift/views/shift_website_templates.xml
  59. 16
      beesdoo_website_theme/views/assets.xml
  60. 45
      beesdoo_worker_status/demo/tasks.xml
  61. 15
      macavrac_base/views/res_partner.xml
  62. 34
      purchase_order_generator/views/product_template.xml
  63. 21
      purchase_order_generator/views/purchase_order.xml
  64. 2
      purchase_order_generator/views/purchase_order_generator.xml

40
beesdoo_account/views/account_invoice.xml

@ -1,23 +1,23 @@
<odoo>
<record model="ir.ui.view" id="beesdoo_account_invoice_form_view">
<field name="name">beesdoo.account.invoice.form.view</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form" />
<field name="arch" type="xml">
<field name="date_invoice" position="attributes">
<attribute name="required">True</attribute>
</field>
</field>
</record>
<record model="ir.ui.view" id="beesdoo_account_invoice_form_view">
<field name="name">beesdoo.account.invoice.form.view</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<field name="date_invoice" position="attributes">
<attribute name="required">True</attribute>
</field>
</field>
</record>
<record model="ir.ui.view" id="beesdoo_account_invoice_supplier_form_view">
<field name="name">beesdoo.account.invoice.supplier.form.view</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form" />
<field name="arch" type="xml">
<field name="date_invoice" position="attributes">
<attribute name="required">True</attribute>
</field>
</field>
</record>
<record model="ir.ui.view" id="beesdoo_account_invoice_supplier_form_view">
<field name="name">beesdoo.account.invoice.supplier.form.view</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="arch" type="xml">
<field name="date_invoice" position="attributes">
<attribute name="required">True</attribute>
</field>
</field>
</record>
</odoo>

38
beesdoo_base/demo/cooperators.xml

@ -84,51 +84,51 @@
<field name="country_id" ref="base.be"/>
</record>
<record id="member_card_1_demo" model="member.card">
<record id="member_card_1_demo" model="member.card">
<field name="barcode">421457731741</field>
<field name="comment">Demo data</field>
<field name="create_date" eval="datetime.now() - timedelta(days=15)" />
<field name="partner_id" ref="res_partner_cooperator_1_demo" />
<field name="valid" eval="True" />
<field name="create_date" eval="datetime.now() - timedelta(days=15)"/>
<field name="partner_id" ref="res_partner_cooperator_1_demo"/>
<field name="valid" eval="True"/>
</record>
<record id="member_card_2_demo" model="member.card">
<field name="barcode">429919251493</field>
<field name="comment">Demo data</field>
<field name="create_date" eval="datetime.now() - timedelta(days=10)" />
<field name="partner_id" ref="res_partner_cooperator_2_demo" />
<field name="valid" eval="True" />
<field name="create_date" eval="datetime.now() - timedelta(days=10)"/>
<field name="partner_id" ref="res_partner_cooperator_2_demo"/>
<field name="valid" eval="True"/>
</record>
<record id="member_card_3_demo" model="member.card">
<field name="barcode">421457731742</field>
<field name="comment">Demo data</field>
<field name="create_date" eval="datetime.now() - timedelta(days=15)" />
<field name="partner_id" ref="res_partner_cooperator_3_demo" />
<field name="valid" eval="True" />
<field name="create_date" eval="datetime.now() - timedelta(days=15)"/>
<field name="partner_id" ref="res_partner_cooperator_3_demo"/>
<field name="valid" eval="True"/>
</record>
<record id="member_card_4_demo" model="member.card">
<field name="barcode">421457731743</field>
<field name="comment">Demo data</field>
<field name="create_date" eval="datetime.now() - timedelta(days=15)" />
<field name="partner_id" ref="res_partner_cooperator_4_demo" />
<field name="valid" eval="True" />
<field name="create_date" eval="datetime.now() - timedelta(days=15)"/>
<field name="partner_id" ref="res_partner_cooperator_4_demo"/>
<field name="valid" eval="True"/>
</record>
<record id="member_card_5_demo" model="member.card">
<field name="barcode">421457731744</field>
<field name="comment">Demo data</field>
<field name="create_date" eval="datetime.now() - timedelta(days=15)" />
<field name="partner_id" ref="res_partner_cooperator_5_demo" />
<field name="valid" eval="True" />
<field name="create_date" eval="datetime.now() - timedelta(days=15)"/>
<field name="partner_id" ref="res_partner_cooperator_5_demo"/>
<field name="valid" eval="True"/>
</record>
<record id="member_card_6_demo" model="member.card">
<field name="barcode">421457731745</field>
<field name="comment">Demo data</field>
<field name="create_date" eval="datetime.now() - timedelta(days=15)" />
<field name="partner_id" ref="res_partner_cooperator_6_demo" />
<field name="valid" eval="True" />
<field name="create_date" eval="datetime.now() - timedelta(days=15)"/>
<field name="partner_id" ref="res_partner_cooperator_6_demo"/>
<field name="valid" eval="True"/>
</record>
</odoo>

96
beesdoo_base/report/beescard.xml

@ -1,8 +1,8 @@
<odoo>
<report id="report_beescard_cm" string="Beescaard" model="res.partner"
report_type="qweb-html" file="beesdoo_base.beescard_template_cm"
name="beesdoo_base.beescard_template_cm" />
report_type="qweb-html" file="beesdoo_base.beescard_template_cm"
name="beesdoo_base.beescard_template_cm"/>
<!-- Use paper format a4 low margin -->
@ -35,70 +35,74 @@
<t t-foreach="docs" t-as="partner">
<table
style="width: 14.02cm;height: 9.39cm;table-layout:fixed;display: inline-block;">
style="width: 14.02cm;height: 9.39cm;table-layout:fixed;display: inline-block;">
<tr>
<td
style="border-bottom: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
style="border-bottom: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
<td
style="border-left: 1px solid black;border-right: 1px solid black;"
colspan="2"></td>
style="border-left: 1px solid black;border-right: 1px solid black;"
colspan="2"></td>
<td
style="border-bottom: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
style="border-bottom: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
</tr>
<tr>
<td></td>
<td
style="width: 4.98cm;vertical-align:bottom;height: 6.87cm;">
style="width: 4.98cm;vertical-align:bottom;height: 6.87cm;">
<div
style="padding-top:0.2cm;padding-left:0.1cm;padding-bottom:0.2cm;">
style="padding-top:0.2cm;padding-left:0.1cm;padding-bottom:0.2cm;">
<img alt="Embedded Image"
t-att-src="'data:image/png;base64,' + partner.image"
style="width:4.7cm;height:6.4cm" />
t-att-src="'data:image/png;base64,' + partner.image"
style="width:4.7cm;height:6.4cm"/>
</div>
</td>
<td
style="vertical-align:top;width:7.72cm;height: 6.87cm;position: relative;">
style="vertical-align:top;width:7.72cm;height: 6.87cm;position: relative;">
<p style="text-align: left;padding-top: 0.2cm;font-size: 1.2em;">
<span t-raw="partner.firstname and partner.firstname[:30] or ''" style="font-family:Roboto-Regular" />
<br />
<span t-raw="partner.lastname and partner.lastname[:26] or ''" style="font-family:Roboto-Bold;" />
<br />
<span t-raw="partner.firstname and partner.firstname[:30] or ''"
style="font-family:Roboto-Regular"/>
<br/>
<span t-raw="partner.lastname and partner.lastname[:26] or ''"
style="font-family:Roboto-Bold;"/>
<br/>
</p>
<p style="text-align: left;padding-top: 0.2cm;font-size: 1em;">
<t t-if="partner.parent_eater_id and partner.eater == 'eater'">
<!--fix here -->
<span t-raw="partner.parent_eater_id.firstname and partner.parent_eater_id.firstname[:30] or ''" style="font-family:Roboto-Regular;" />
<span t-raw="partner.parent_eater_id.lastname and partner.parent_eater_id.lastname[:26] or ''" style="font-family:Roboto-Regular;" />
<span t-raw="partner.parent_eater_id.firstname and partner.parent_eater_id.firstname[:30] or ''"
style="font-family:Roboto-Regular;"/>
<span t-raw="partner.parent_eater_id.lastname and partner.parent_eater_id.lastname[:26] or ''"
style="font-family:Roboto-Regular;"/>
</t>
<t t-if="partner.parent_eater_id and partner.parent_eater_id.cooperator_type == 'share_b'">
<!--fix here never true-->
<span
t-raw="'[' + (partner.parent_eater_id.name[:60] or '') + ']'"
style="font-family:Roboto-Regular" />
t-raw="'[' + (partner.parent_eater_id.name[:60] or '') + ']'"
style="font-family:Roboto-Regular"/>
</t>
</p>
<div style="position: absolute;bottom: 0;">
<div style="padding-top:0.3cm">
<img
t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s&amp;humanreadable=%s'%('EAN13', partner.barcode if not partner.parent_eater_id else partner.parent_barcode, 340, 70, 1)"
style="width:7.2cm;height:2.52cm" />
t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s&amp;humanreadable=%s'%('EAN13', partner.barcode if not partner.parent_eater_id else partner.parent_barcode, 340, 70, 1)"
style="width:7.2cm;height:2.52cm"/>
</div>
<div
style="padding-top:0.2cm;padding-bottom:0.2cm;">
style="padding-top:0.2cm;padding-bottom:0.2cm;">
<t t-if="partner.cooperator_type == 'share_a' or partner.parent_eater_id.cooperator_type == 'share_a'">
<img
src="/beesdoo_base/static/src/img/redline.png"
style="width:7.2cm;height:0.2cm" />
src="/beesdoo_base/static/src/img/redline.png"
style="width:7.2cm;height:0.2cm"/>
</t>
<t t-if="partner.cooperator_type == 'share_b' or partner.parent_eater_id.cooperator_type == 'share_b'">
<img
src="/beesdoo_base/static/src/img/blueline.png"
style="width:7.2cm;height:0.2cm" />
src="/beesdoo_base/static/src/img/blueline.png"
style="width:7.2cm;height:0.2cm"/>
</t>
</div>
</div>
@ -110,7 +114,8 @@
<td colspan="2"
style="vertical-align:center;height: 1.20cm;">
<p
style="text-align:center;font-size:0.8em;font-family:Roboto-Regular">En cas de perte,
style="text-align:center;font-size:0.8em;font-family:Roboto-Regular">
En cas de perte,
prévenez-nous via
membre@bees-coop.be
</p>
@ -119,33 +124,33 @@
</tr>
<tr>
<td
style="border-top: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
style="border-top: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
<td
style="border-left: 1px solid black;border-right: 1px solid black;"
colspan="2"></td>
style="border-left: 1px solid black;border-right: 1px solid black;"
colspan="2"></td>
<td
style="border-top: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
style="border-top: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
</tr>
</table>
<table
style="width: 14.02cm;height: 9.39cm;table-layout:fixed;display: inline-block;">
style="width: 14.02cm;height: 9.39cm;table-layout:fixed;display: inline-block;">
<tr>
<td
style="border-bottom: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
style="border-bottom: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
<td
style="border-left: 1px solid black;border-right: 1px solid black;"
colspan="2"></td>
style="border-left: 1px solid black;border-right: 1px solid black;"
colspan="2"></td>
<td
style="border-bottom: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
style="border-bottom: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
</tr>
<tr>
<td></td>
<td style="width: 12.7cm;height: 6.87cm;">
<img
src="/beesdoo_base/static/src/img/logo.png"
style="display: block;margin-left: auto;margin-right: auto;margin-top:0.2cm;margin-bottom:0.2cm;width:6.46cm;height:6.46cm" />
src="/beesdoo_base/static/src/img/logo.png"
style="display: block;margin-left: auto;margin-right: auto;margin-top:0.2cm;margin-bottom:0.2cm;width:6.46cm;height:6.46cm"/>
</td>
<td></td>
</tr>
@ -153,22 +158,23 @@
<td></td>
<td style="height: 1.20cm;">
<p
style="text-align:center;font-family:Roboto-Regular;font-size:1.1em;">www.bees-coop.be
style="text-align:center;font-family:Roboto-Regular;font-size:1.1em;">
www.bees-coop.be
</p>
</td>
<td></td>
</tr>
<tr>
<td
style="border-top: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
style="border-top: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
<td
style="border-left: 1px solid black;border-right: 1px solid black;"
colspan="2"></td>
style="border-left: 1px solid black;border-right: 1px solid black;"
colspan="2"></td>
<td
style="border-top: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
style="border-top: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
</tr>
</table>
<br />
<br/>
</t>
</div>
</t>

2
beesdoo_base/security/groups.xml

@ -2,6 +2,6 @@
<odoo>
<record id="group_force_barcode" model="res.groups">
<field name="name">Bees Card Force Barcode</field>
<field name="users" eval="[(6, 0, [ref('base.user_root')])]" />
<field name="users" eval="[(6, 0, [ref('base.user_root')])]"/>
</record>
</odoo>

48
beesdoo_base/views/partner.xml

@ -17,47 +17,50 @@
<record model="ir.ui.view" id="beesdoo_partner_form_view">
<field name="name">beesdoo.partner.form.view</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="point_of_sale.view_partner_property_form" />
<field name="inherit_id"
ref="point_of_sale.view_partner_property_form"/>
<field name="arch" type="xml">
<field name="website" position="after">
<field name="eater"
attrs="{'invisible': [('customer', '=', False)]}" />
attrs="{'invisible': [('customer', '=', False)]}"/>
<field name="parent_eater_id"
attrs="{'invisible' : [('eater', '!=', 'eater')]}" />
attrs="{'invisible' : [('eater', '!=', 'eater')]}"/>
</field>
<xpath expr="//notebook" position="inside">
<page string="Member Card"
attrs="{'invisible': ['|', ('customer', '=', False), ('eater', 'not in', ('worker_eater', 'eater'))]}">
attrs="{'invisible': ['|', ('customer', '=', False), ('eater', 'not in', ('worker_eater', 'eater'))]}">
<group>
<group>
<field name="member_card_to_be_printed" />
<field name="last_printed" />
<field name="member_card_to_be_printed"/>
<field name="last_printed"/>
</group>
</group>
<group attrs="{'invisible': ['|', ('customer', '=', False), ('eater', '!=', 'worker_eater')]}">
<separator string="Eaters" />
<separator string="Eaters"/>
<field name="child_eater_ids" widget="many2many_tags"
options="{'no_create': True}"
context="{'default_eater' : 'eater', 'default_customer' : True}" />
options="{'no_create': True}"
context="{'default_eater' : 'eater', 'default_customer' : True}"/>
<group>
<button string="New Eater" name="%(action_eater_wizard)d"
type="action" />
<button string="New Eater"
name="%(action_eater_wizard)d"
type="action"/>
</group>
<separator string="Cards" />
<separator string="Cards"/>
<field string="Cards" name="member_card_ids">
<tree editable="bottom">
<field name="barcode" />
<field name="create_date" />
<field name="end_date" />
<field name="responsible_id" />
<field name="comment" />
<field name="valid" />
<field name="barcode"/>
<field name="create_date"/>
<field name="end_date"/>
<field name="responsible_id"/>
<field name="comment"/>
<field name="valid"/>
</tree>
</field>
<group>
<button string="New Card"
name="%(action_membercard_wizard)d" type="action" />
name="%(action_membercard_wizard)d"
type="action"/>
</group>
</group>
</page>
@ -71,18 +74,19 @@
</field>
<field name="barcode" position="after">
<field name="parent_barcode"
attrs="{'invisible' : [('eater', '!=', 'eater')]}" />
attrs="{'invisible' : [('eater', '!=', 'eater')]}"/>
</field>
<!-- Temporary fix for the partner_view -->
<xpath expr="//field[@name='customer']" position='before'>
<field name="is_company" invisible="True" />
<field name="is_company" invisible="True"/>
</xpath>
</field>
</record>
<!-- S022 : By default a supplier should be a company -->
<record id="base.action_partner_supplier_form" model="ir.actions.act_window">
<record id="base.action_partner_supplier_form"
model="ir.actions.act_window">
<field name="context">{
'search_default_supplier': 1,
'default_customer': 0,

90
beesdoo_base/wizard/views/member_card.xml

@ -1,82 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- New card generation wizard -->
<!-- New card generation wizard -->
<record id="MemberCard Wizard" model="ir.ui.view">
<field name="name">New MemberCard Wizard</field>
<field name="model">membercard.new.wizard</field>
<field name="arch" type="xml">
<form>
<group groups="beesdoo_base.group_force_barcode">
<field name="force_barcode" />
<field name="force_barcode"/>
</group>
<separator string="Reason" />
<field name="new_comment" string="Reason" editable="True" />
<field name="partner_id" invisible="1" />
<separator string="Reason"/>
<field name="new_comment" string="Reason" editable="True"/>
<field name="partner_id" invisible="1"/>
<footer>
<button type="object" name="create_new_card" string="Create"
class="oe_highlight" />
<button special="cancel" string="Cancel" />
class="oe_highlight"/>
<button special="cancel" string="Cancel"/>
</footer>
</form>
</field>
</record>
<record id="printing_membercard_request_wizard" model="ir.ui.view">
<record id="printing_membercard_request_wizard" model="ir.ui.view">
<field name="name">Request Membercard Printing Wizard</field>
<field name="model">membercard.requestprinting.wizard</field>
<field name="arch" type="xml">
<form>
<separator string="Request Printing for" />
<field name="partner_ids" />
<footer>
<button
type="object"
name="request_printing"
string="Request Beescard Printing"
class="oe_highlight" />
<button special="cancel" string="Cancel" />
</footer>
</form>
<form>
<separator string="Request Printing for"/>
<field name="partner_ids"/>
<footer>
<button
type="object"
name="request_printing"
string="Request Beescard Printing"
class="oe_highlight"/>
<button special="cancel" string="Cancel"/>
</footer>
</form>
</field>
</record>
<act_window name="Request BEES card printing"
res_model="membercard.requestprinting.wizard"
src_model="res.partner"
view_mode="form"
target="new"
key2="client_action_multi"
id="beesdoo_base_action_request_membercard_printing"
res_model="membercard.requestprinting.wizard"
src_model="res.partner"
view_mode="form"
target="new"
key2="client_action_multi"
id="beesdoo_base_action_request_membercard_printing"
/>
<record id="membercard_set_as_printed_wizard" model="ir.ui.view">
<field name="name">Set Membercard as Printed Wizard</field>
<field name="model">membercard.set_as_printed.wizard</field>
<field name="arch" type="xml">
<form>
<separator string="Set as Printed for" />
<field name="partner_ids" />
<separator string="Set as Printed for"/>
<field name="partner_ids"/>
<footer>
<button
type="object"
name="set_as_printed"
string="Set as Printed"
class="oe_highlight" />
<button special="cancel" string="Cancel" />
</footer>
<button
type="object"
name="set_as_printed"
string="Set as Printed"
class="oe_highlight"/>
<button special="cancel" string="Cancel"/>
</footer>
</form>
</field>
</record>
<act_window name="Set BEES card as printed"
res_model="membercard.set_as_printed.wizard"
src_model="res.partner"
view_mode="form"
target="new"
key2="client_action_multi"
id="beesdoo_base_action_set_membercard_as_printed"
res_model="membercard.set_as_printed.wizard"
src_model="res.partner"
view_mode="form"
target="new"
key2="client_action_multi"
id="beesdoo_base_action_set_membercard_as_printed"
/>
</odoo>

10
beesdoo_base/wizard/views/partner.xml

@ -7,14 +7,14 @@
<field name="arch" type="xml">
<form string="Create a new eater">
<group>
<field name="first_name" />
<field name="last_name" />
<field name="email" />
<field name="first_name"/>
<field name="last_name"/>
<field name="email"/>
</group>
<footer>
<button type="object" name="create_new_eater"
string="Create" class="oe_highlight" />
<button special="cancel" string="Cancel" />
string="Create" class="oe_highlight"/>
<button special="cancel" string="Cancel"/>
</footer>
</form>
</field>

42
beesdoo_easy_my_coop/demo/product_share.xml

@ -1,32 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Share products -->
<record id="share_a" model="product.product" >
<record id="share_a" model="product.product">
<field name="name">Acquisition de parts A de Beescoop scrl</field>
<field name="default_code">share_a</field>
<field name="customer" eval="True" />
<field name="allow_working" eval="True" />
<field name="allow_shopping" eval="True" />
<field name="customer" eval="True"/>
<field name="allow_working" eval="True"/>
<field name="allow_shopping" eval="True"/>
<field name="max_nb_eater_allowed">3</field>
<field name="is_share" eval="True" />
<field name="is_share" eval="True"/>
</record>
<record id="share_b" model="product.product" >
<record id="share_b" model="product.product">
<field name="name">Acquisition de parts B de Beescoop scrl</field>
<field name="default_code">share_b</field>
<field name="customer" eval="True" />
<field name="allow_working" eval="False" />
<field name="allow_shopping" eval="True" />
<field name="customer" eval="True"/>
<field name="allow_working" eval="False"/>
<field name="allow_shopping" eval="True"/>
<field name="max_nb_eater_allowed">2</field>
<field name="is_share" eval="True" />
<field name="is_share" eval="True"/>
</record>
<record id="share_c" model="product.product" >
<record id="share_c" model="product.product">
<field name="name">Acquisition de parts C de Beescoop scrl</field>
<field name="default_code">share_c</field>
<field name="customer" eval="True" />
<field name="allow_working" eval="False" />
<field name="allow_shopping" eval="False" />
<field name="customer" eval="True"/>
<field name="allow_working" eval="False"/>
<field name="allow_shopping" eval="False"/>
<field name="max_nb_eater_allowed">-1</field>
<field name="is_share" eval="True" />
<field name="is_share" eval="True"/>
</record>
<!-- Share lines -->
@ -35,10 +35,10 @@
<field name="share_number">2</field>
<field name="effective_date">2020-01-01</field>
<field name="partner_id"
ref="beesdoo_base.res_partner_cooperator_1_demo"/>
ref="beesdoo_base.res_partner_cooperator_1_demo"/>
</record>
<record id="beesdoo_base.res_partner_cooperator_1_demo"
model="res.partner">
model="res.partner">
<field name="cooperator" eval="True"/>
<field name="member" eval="True"/>
<field name="share_ids" eval="[(4, ref('shareline_coop_1'))]"/>
@ -50,10 +50,10 @@
<field name="share_number">4</field>
<field name="effective_date">2020-01-01</field>
<field name="partner_id"
ref="beesdoo_base.res_partner_cooperator_2_demo"/>
ref="beesdoo_base.res_partner_cooperator_2_demo"/>
</record>
<record id="beesdoo_base.res_partner_cooperator_2_demo"
model="res.partner">
model="res.partner">
<field name="cooperator" eval="True"/>
<field name="member" eval="True"/>
<field name="share_ids" eval="[(4, ref('shareline_coop_2'))]"/>
@ -65,10 +65,10 @@
<field name="share_number">6</field>
<field name="effective_date">2020-01-01</field>
<field name="partner_id"
ref="beesdoo_base.res_partner_cooperator_3_demo"/>
ref="beesdoo_base.res_partner_cooperator_3_demo"/>
</record>
<record id="beesdoo_base.res_partner_cooperator_3_demo"
model="res.partner">
model="res.partner">
<field name="cooperator" eval="True"/>
<field name="member" eval="True"/>
<field name="share_ids" eval="[(4, ref('shareline_coop_3'))]"/>

18
beesdoo_easy_my_coop/views/product.xml

@ -1,17 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="product_template_share_form_view_beesdoo_emc" model="ir.ui.view">
<record id="product_template_share_form_view_beesdoo_emc"
model="ir.ui.view">
<field name="name">product.template.share.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="easy_my_coop.product_template_share_form_view"/>
<field name="inherit_id"
ref="easy_my_coop.product_template_share_form_view"/>
<field name="arch" type="xml">
<field name="customer" position="after">
<field name="allow_working" attrs="{'invisible':[('is_share','=',False)]}"/>
<field name="allow_shopping" attrs="{'invisible':[('is_share','=',False)]}"/>
<field name="max_nb_eater_allowed" attrs="{'invisible':[('is_share','=',False)]}"/>
<field name="allow_working"
attrs="{'invisible':[('is_share','=',False)]}"/>
<field name="allow_shopping"
attrs="{'invisible':[('is_share','=',False)]}"/>
<field name="max_nb_eater_allowed"
attrs="{'invisible':[('is_share','=',False)]}"/>
</field>
<field name="minimum_quantity" position="after">
<field name="eater" attrs="{'invisible':[('is_share','=',False)]}"/>
<field name="eater"
attrs="{'invisible':[('is_share','=',False)]}"/>
</field>
</field>
</record>

3
beesdoo_easy_my_coop/views/res_company.xml

@ -9,7 +9,8 @@
<field name="model">res.company</field>
<field name="inherit_id" ref="easy_my_coop.view_company_inherit_form2"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='coop_grp']//field[@name='display_data_policy_approval']" position="before">
<xpath expr="//group[@name='coop_grp']//field[@name='display_data_policy_approval']"
position="before">
<field name="display_info_session_confirmation"/>
<field name="info_session_confirmation_required"/>
<field name="info_session_confirmation_text"/>

43
beesdoo_easy_my_coop/views/subscription_templates.xml

@ -4,25 +4,28 @@
<odoo>
<template id="beesdoo_easy_my_coop.becomecooperator"
name="Become Cooperator (in beesdoo_easy_my_coop)"
inherit_id="easy_my_coop_website.becomecooperator">
<xpath expr="//div[@id='data_policy_approved']" position="before">
<div id="info_session_confirmed" t-if="display_info_session" t-attf-class="form-group" >
<label class="col-md-3 col-sm-4 control-label" for="info_session_confirmed">Info Session</label>
<div class="col-md-9 col-sm-8">
<div class="checkbox">
<label for="info_session_confirmed">
<input type="checkbox"
name="info_session_confirmed"
t-att="{'required': 'required'} if info_session_required else {}"
t-attf-value="#{data_policy_approved or ''}"/>
<t t-raw="info_session_text"/>
</label>
</div>
</div>
</div>
</xpath>
</template>
<template id="beesdoo_easy_my_coop.becomecooperator"
name="Become Cooperator (in beesdoo_easy_my_coop)"
inherit_id="easy_my_coop_website.becomecooperator">
<xpath expr="//div[@id='data_policy_approved']" position="before">
<div id="info_session_confirmed" t-if="display_info_session"
t-attf-class="form-group">
<label class="col-md-3 col-sm-4 control-label"
for="info_session_confirmed">Info Session
</label>
<div class="col-md-9 col-sm-8">
<div class="checkbox">
<label for="info_session_confirmed">
<input type="checkbox"
name="info_session_confirmed"
t-att="{'required': 'required'} if info_session_required else {}"
t-attf-value="#{data_policy_approved or ''}"/>
<t t-raw="info_session_text"/>
</label>
</div>
</div>
</div>
</xpath>
</template>
</odoo>

20
beesdoo_inventory/views/stock.xml

@ -3,10 +3,10 @@
<record model="ir.ui.view" id="beesdoo_stock_tree_view">
<field name="name">beesdoo.stock.tree.view</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.vpicktree" />
<field name="inherit_id" ref="stock.vpicktree"/>
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="responsible" />
<field name="responsible"/>
</field>
</field>
</record>
@ -14,19 +14,23 @@
<record model="ir.ui.view" id="beesdoo_stock_form_view">
<field name="name">beesdoo.stock.form.view</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form" />
<field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml">
<field name="scheduled_date" position="after">
<field name="max_shipping_date" placeholder="Max shipping date" />
<field name="max_shipping_date"
placeholder="Max shipping date"/>
</field>
<field name="backorder_id" position="after">
<field name="responsible" />
<field name="responsible"/>
</field>
<button name="action_assign" position="after">
<button name="copy_qty" string="Copy Move Line Quantity" states="partially_available,assigned" type="object" class="oe_highlight"
attrs="{'invisible': ['|', ('picking_type_code', '!=', 'incoming')]}"/>
<button name="copy_qty" string="Copy Move Line Quantity"
states="partially_available,assigned" type="object"
class="oe_highlight"
attrs="{'invisible': ['|', ('picking_type_code', '!=', 'incoming')]}"/>
</button>
<xpath expr="//field[@name='move_ids_without_package']//field[@name='product_id']" position="attributes">
<xpath expr="//field[@name='move_ids_without_package']//field[@name='product_id']"
position="attributes">
<attribute name="domain">[('main_seller_id', '=', parent.partner_id)]</attribute>
</xpath>
</field>

34
beesdoo_pos/static/src/xml/templates.xml

@ -4,11 +4,11 @@
<t t-jquery="t[t-if='widget.pos.get_client()']" t-operation="after">
<t t-if="widget.pos.get_client()">
<div class='customer-information-pay'>
<span class='customer-delegate1' />
<br />
<span class='customer-delegate2' />
<br />
<span class='customer-delegate3' />
<span class='customer-delegate1'/>
<br/>
<span class='customer-delegate2'/>
<br/>
<span class='customer-delegate3'/>
</div>
</t>
</t>
@ -18,22 +18,22 @@
<t t-jquery=".paymentmethods-container" t-operation="inner">
<t t-if="widget.pos.get_client()">
<div class="customer-information">
<span class='customer-name' />
<br />
<span class='customer-delegate1' />
<br />
<span class='customer-delegate2' />
<br />
<span class='customer-delegate3' />
<br />
<span class='customer-name'/>
<br/>
<span class='customer-delegate1'/>
<br/>
<span class='customer-delegate2'/>
<br/>
<span class='customer-delegate3'/>
<br/>
</div>
</t>
</t>
</t>
<t t-extend="ClientListScreenWidget">
<t t-jquery='.new-customer' t-operation='replace'>
</t>
<t t-jquery='.new-customer' t-operation='replace'>
</t>
<t t-jquery=".client-list" t-operation="replace">
@ -53,7 +53,9 @@
<t t-extend="ClientLine">
<t t-jquery=".client-line" t-operation="replace">
<tr class='client-line' t-att-data-id='partner.id'>
<td><t t-esc='partner.name' /></td>
<td>
<t t-esc='partner.name'/>
</td>
</tr>
</t>
</t>

5
beesdoo_pos/views/beesdoo_pos.xml

@ -2,8 +2,9 @@
<template id="assets" inherit_id="point_of_sale.assets">
<xpath expr="." position="inside">
<script type="text/javascript"
src="/beesdoo_pos/static/src/js/beesdoo.js"></script>
<link rel='stylesheet' href="/beesdoo_pos/static/src/css/beesdoo.css" />
src="/beesdoo_pos/static/src/js/beesdoo.js"></script>
<link rel='stylesheet'
href="/beesdoo_pos/static/src/css/beesdoo.css"/>
</xpath>
</template>
</odoo>

22
beesdoo_product/data/barcode_rule.xml

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record model="barcode.rule" id="beesdoo_product_barcode_rule">
<field name="name">Beescoop Product Barcodes</field>
<field name="barcode_nomenclature_id">1</field>
<field name="type">product</field>
<field name="pattern">043</field>
<field name="sequence">45</field>
<field name="encoding">ean13</field>
</record>
</data>
</odoo>
<data noupdate="1">
<record model="barcode.rule" id="beesdoo_product_barcode_rule">
<field name="name">Beescoop Product Barcodes</field>
<field name="barcode_nomenclature_id">1</field>
<field name="type">product</field>
<field name="pattern">043</field>
<field name="sequence">45</field>
<field name="encoding">ean13</field>
</record>
</data>
</odoo>

132
beesdoo_product/data/product_label.xml

@ -1,69 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record model="beesdoo.product.label" id="eco_green">
<field name="name">Label Bio ou Confiance</field>
<field name="type">eco</field>
<field name="color_code">#40ff00</field>
</record>
<record model="beesdoo.product.label" id="eco_orange">
<field name="name">Agriculture raisonnée</field>
<field name="type">eco</field>
<field name="color_code">#ffa200</field>
</record>
<record model="beesdoo.product.label" id="eco_red">
<field name="name">Conventionnel</field>
<field name="type">eco</field>
<field name="color_code">#ff4000</field>
</record>
<record model="beesdoo.product.label" id="local_green">
<field name="name">Belgique</field>
<field name="type">local</field>
<field name="color_code">#40ff00</field>
</record>
<record model="beesdoo.product.label" id="local_orange">
<field name="name">Europe</field>
<field name="type">local</field>
<field name="color_code">#ffa200</field>
</record>
<record model="beesdoo.product.label" id="local_red">
<field name="name">Monde</field>
<field name="type">local</field>
<field name="color_code">#ff4000</field>
</record>
<record model="beesdoo.product.label" id="fair_green">
<field name="name">Label par tiers</field>
<field name="type">fair</field>
<field name="color_code">#40ff00</field>
</record>
<record model="beesdoo.product.label" id="fair_orange">
<field name="name">Préserve l’intérêt</field>
<field name="type">fair</field>
<field name="color_code">#ffa200</field>
</record>
<record model="beesdoo.product.label" id="fair_red">
<field name="name">Aucune garantie</field>
<field name="type">fair</field>
<field name="color_code">#ff4000</field>
</record>
<record model="beesdoo.product.label" id="delivery_green">
<field name="name">Intermédiaire coopératif</field>
<field name="type">delivery</field>
<field name="color_code">#40ff00</field>
</record>
<record model="beesdoo.product.label" id="delivery_orange">
<field name="name">Grossiste biologique</field>
<field name="type">delivery</field>
<field name="color_code">#ffa200</field>
</record>
<record model="beesdoo.product.label" id="delivery_red">
<field name="name">Grossiste industriel</field>
<field name="type">delivery</field>
<field name="color_code">#ff4000</field>
</record>
<record id="consignes_group_tax" model="account.tax.group">
<field name="name">Consignes</field>
<field name="sequence" eval="10" />
</record>
</data>
<data noupdate="1">
<record model="beesdoo.product.label" id="eco_green">
<field name="name">Label Bio ou Confiance</field>
<field name="type">eco</field>
<field name="color_code">#40ff00</field>
</record>
<record model="beesdoo.product.label" id="eco_orange">
<field name="name">Agriculture raisonnée</field>
<field name="type">eco</field>
<field name="color_code">#ffa200</field>
</record>
<record model="beesdoo.product.label" id="eco_red">
<field name="name">Conventionnel</field>
<field name="type">eco</field>
<field name="color_code">#ff4000</field>
</record>
<record model="beesdoo.product.label" id="local_green">
<field name="name">Belgique</field>
<field name="type">local</field>
<field name="color_code">#40ff00</field>
</record>
<record model="beesdoo.product.label" id="local_orange">
<field name="name">Europe</field>
<field name="type">local</field>
<field name="color_code">#ffa200</field>
</record>
<record model="beesdoo.product.label" id="local_red">
<field name="name">Monde</field>
<field name="type">local</field>
<field name="color_code">#ff4000</field>
</record>
<record model="beesdoo.product.label" id="fair_green">
<field name="name">Label par tiers</field>
<field name="type">fair</field>
<field name="color_code">#40ff00</field>
</record>
<record model="beesdoo.product.label" id="fair_orange">
<field name="name">Préserve l’intérêt</field>
<field name="type">fair</field>
<field name="color_code">#ffa200</field>
</record>
<record model="beesdoo.product.label" id="fair_red">
<field name="name">Aucune garantie</field>
<field name="type">fair</field>
<field name="color_code">#ff4000</field>
</record>
<record model="beesdoo.product.label" id="delivery_green">
<field name="name">Intermédiaire coopératif</field>
<field name="type">delivery</field>
<field name="color_code">#40ff00</field>
</record>
<record model="beesdoo.product.label" id="delivery_orange">
<field name="name">Grossiste biologique</field>
<field name="type">delivery</field>
<field name="color_code">#ffa200</field>
</record>
<record model="beesdoo.product.label" id="delivery_red">
<field name="name">Grossiste industriel</field>
<field name="type">delivery</field>
<field name="color_code">#ff4000</field>
</record>
<record id="consignes_group_tax" model="account.tax.group">
<field name="name">Consignes</field>
<field name="sequence" eval="10"/>
</record>
</data>
</odoo>

3
beesdoo_product/views/assets.xml

@ -2,7 +2,8 @@
<odoo>
<template id="assets_frontend" inherit_id="point_of_sale.assets">
<xpath expr="." position="inside">
<script type="text/javascript" src="/beesdoo_product/static/src/js/models.js"/>
<script type="text/javascript"
src="/beesdoo_product/static/src/js/models.js"/>
</xpath>
</template>
</odoo>

121
beesdoo_product/views/beesdoo_product.xml

@ -3,13 +3,16 @@
<record model="ir.ui.view" id="beesdoo_product_form">
<field name="name">bees.product.template.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view" />
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<field name="barcode" position="after">
<button string="Generate Barcode" name="generate_barcode" type="object" colspan="2" attrs="{'invisible' : [('barcode','!=',False)]}" />
<button string="Generate Barcode" name="generate_barcode"
type="object" colspan="2"
attrs="{'invisible' : [('barcode','!=',False)]}"/>
</field>
<field name="list_price" position="after">
<field name="suggested_price" widget='monetary' options="{'currency_field': 'currency_id'}" />
<field name="suggested_price" widget='monetary'
options="{'currency_field': 'currency_id'}"/>
</field>
<field name="purchase_method" position="attributes">
<attribute name="invisible">1</attribute>
@ -18,21 +21,21 @@
<attribute name="invisible">1</attribute>
</field>
<field name="property_account_creditor_price_difference"
position="attributes">
position="attributes">
<attribute name="invisible">1</attribute>
</field>
<xpath expr="//group[@name='inventory']/.." position="after">
<page string="Label">
<group>
<group name="label">
<page string="Label">
<group>
<group name="label">
<field name="total_with_vat"/>
<field name="display_weight"/>
<field name="display_unit"/>
<field name="default_reference_unit"/>
<field name="total_with_vat_by_unit" />
<field name="total_deposit" />
</group>
<group>
<field name="total_with_vat_by_unit"/>
<field name="total_deposit"/>
</group>
<group>
<field name="main_seller_id"/>
<field name="eco_label"/>
<field name="local_label"/>
@ -40,36 +43,38 @@
<field name="origin_label"/>
<field name="label_to_be_printed"/>
<field name="label_last_printed"/>
</group>
</group>
<group>
<field name="note" />
</group>
</page>
<page string="Scale labels" attrs="{'invisible':[('to_weight','=',False)]}">
<group>
<group name="scale_label">
<field name="deadline_for_sale"/>
<field name="deadline_for_consumption"/>
<field name="ingredients"/>
<field name="scale_label_info_1"/>
<field name="scale_label_info_2"/>
</group>
<group>
<field name="scale_sale_unit"/>
<field name="scale_category" widget="selection"/>
<field name="scale_category_code"/>
</group>
</group>
</page>
</xpath>
</group>
</group>
<group>
<field name="note"/>
</group>
</page>
<page string="Scale labels"
attrs="{'invisible':[('to_weight','=',False)]}">
<group>
<group name="scale_label">
<field name="deadline_for_sale"/>
<field name="deadline_for_consumption"/>
<field name="ingredients"/>
<field name="scale_label_info_1"/>
<field name="scale_label_info_2"/>
</group>
<group>
<field name="scale_sale_unit"/>
<field name="scale_category" widget="selection"/>
<field name="scale_category_code"/>
</group>
</group>
</page>
</xpath>
</field>
</record>
<record model="ir.ui.view" id="beesdoo_product_sales_form">
<field name="name">bees.product.sales.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="sale.product_template_form_view_invoice_policy" />
<field name="inherit_id"
ref="sale.product_template_form_view_invoice_policy"/>
<field name="arch" type="xml">
<field name="invoice_policy" position="attributes">
<attribute name="invisible">1</attribute>
@ -83,10 +88,10 @@
<field name="arch" type="xml">
<form>
<group>
<field name="name" />
<field name="type" />
<field name="color_code" />
<field name="active" />
<field name="name"/>
<field name="type"/>
<field name="color_code"/>
<field name="active"/>
</group>
</form>
</field>
@ -97,10 +102,10 @@
<field name="model">beesdoo.product.label</field>
<field name="arch" type="xml">
<tree editable="top">
<field name="name" />
<field name="type" />
<field name="color_code" />
<field name="active" />
<field name="name"/>
<field name="type"/>
<field name="color_code"/>
<field name="active"/>
</tree>
</field>
</record>
@ -108,7 +113,7 @@
<record model="ir.ui.view" id="beesdoo_product_category_list">
<field name="name">beesdoo.product.category.list</field>
<field name="model">product.category</field>
<field name="inherit_id" ref="product.product_category_list_view" />
<field name="inherit_id" ref="product.product_category_list_view"/>
<field name="arch" type="xml">
<field name="display_name" position="after">
<field name="profit_margin"></field>
@ -119,7 +124,7 @@
<record model="ir.ui.view" id="beesdoo_product_category_form">
<field name="name">beesdoo.product.category.form</field>
<field name="model">product.category</field>
<field name="inherit_id" ref="product.product_category_form_view" />
<field name="inherit_id" ref="product.product_category_form_view"/>
<field name="arch" type="xml">
<field name="parent_id" position="after">
<field name="profit_margin"></field>
@ -130,7 +135,7 @@
<record model="ir.ui.view" id="beesdoo_product_supplierinfo_tree_view">
<field name="name">beesdoo.product.supplierinfo.tree</field>
<field name="model">product.supplierinfo</field>
<field name="inherit_id" ref="product.product_supplierinfo_tree_view" />
<field name="inherit_id" ref="product.product_supplierinfo_tree_view"/>
<field name="arch" type="xml">
<field name="price" position="replace">
<field name="price"></field>
@ -144,13 +149,14 @@
<field name="view_mode">tree,form</field>
</record>
<menuitem id="label_configuration_menu" name="Labels" parent="sale.prod_config_main"
<menuitem id="label_configuration_menu" name="Labels"
parent="sale.prod_config_main"
action="action_labels" sequence="20"/>
<record id="beesdoo_product_uom_categ_form" model="ir.ui.view">
<field name="name">uom.category.form</field>
<field name="model">uom.category</field>
<field name="inherit_id" ref="uom.product_uom_categ_form_view" />
<field name="inherit_id" ref="uom.product_uom_categ_form_view"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="type"/>
@ -163,31 +169,32 @@
<field name="model">beesdoo.scale.category</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="code"/>
</tree>
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="beesdoo_scale_category_form">
<field name="name">beesdoo.scale.category.form</field>
<field name="model">beesdoo.scale.category</field>
<field name="arch" type="xml">
<form>
<group>
<field name="name"/>
<field name="code"/>
<field name="name"/>
<field name="code"/>
</group>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="action_scale_categories">
<field name="name">Scale categories</field>
<field name="res_model">beesdoo.scale.category</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="scale_categories_configuration_menu" name="Scale categories" parent="sale.prod_config_main"
<menuitem id="scale_categories_configuration_menu" name="Scale categories"
parent="sale.prod_config_main"
action="action_scale_categories" sequence="15"/>
</odoo>

72
beesdoo_product/wizard/views/label_printing_utils.xml

@ -4,52 +4,52 @@
<field name="name">Request Label Printing Wizard</field>
<field name="model">label.printing.wizard</field>
<field name="arch" type="xml">
<form>
<field name="product_ids" />
<footer>
<button
type="object"
name="request_printing"
string="Request label printing"
class="oe_highlight" />
<button special="cancel" string="Cancel" />
</footer>
</form>
<form>
<field name="product_ids"/>
<footer>
<button
type="object"
name="request_printing"
string="Request label printing"
class="oe_highlight"/>
<button special="cancel" string="Cancel"/>
</footer>
</form>
</field>
</record>
<act_window name="Request label printing"
res_model="label.printing.wizard"
src_model="product.template"
view_mode="form"
target="new"
view_id="printing_label_request_wizard"
key2="client_action_multi"
id="beesdoo_product_action_request_label_printing"
res_model="label.printing.wizard"
src_model="product.template"
view_mode="form"
target="new"
view_id="printing_label_request_wizard"
key2="client_action_multi"
id="beesdoo_product_action_request_label_printing"
/>
<record id="set_label_as_printed_wizard" model="ir.ui.view">
<field name="name">Request Label Printing Wizard</field>
<field name="model">label.printing.wizard</field>
<field name="arch" type="xml">
<form>
<field name="product_ids" />
<footer>
<button
type="object"
name="set_as_printed"
string="Set labels as printed"
class="oe_highlight" />
<button special="cancel" string="Cancel" />
</footer>
</form>
<form>
<field name="product_ids"/>
<footer>
<button
type="object"
name="set_as_printed"
string="Set labels as printed"
class="oe_highlight"/>
<button special="cancel" string="Cancel"/>
</footer>
</form>
</field>
</record>
<act_window name="Set label as printed"
res_model="label.printing.wizard"
src_model="product.template"
view_mode="form"
view_id="set_label_as_printed_wizard"
target="new"
key2="client_action_multi"
id="beesdoo_product_action_set_label_as_printed"
res_model="label.printing.wizard"
src_model="product.template"
view_mode="form"
view_id="set_label_as_printed_wizard"
target="new"
key2="client_action_multi"
id="beesdoo_product_action_set_label_as_printed"
/>
</odoo>

12
beesdoo_product_usability/views/beesdoo_product.xml

@ -24,16 +24,18 @@
</field>
</record>
<record id="purchase.product_normal_action_puchased" model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban</field>
<record id="purchase.product_normal_action_puchased"
model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban</field>
</record>
<record id="product.product_template_action" model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban</field>
<field name="view_mode">tree,form,kanban</field>
</record>
<record id="stock.product_template_action_product" model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban</field>
<record id="stock.product_template_action_product"
model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban</field>
</record>

24
beesdoo_purchase/report/report_purchaseorder.xml

@ -1,16 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="report_purchaseorder_document" inherit_id="purchase.report_purchaseorder_document" name="beesdoo purchaseorder">
<div t-if="o.date_order" position="after">
<data>
<template id="report_purchaseorder_document"
inherit_id="purchase.report_purchaseorder_document"
name="beesdoo purchaseorder">
<div t-if="o.date_order" position="after">
<div t-if="o.create_uid.name" class="col-xs-3">
<strong>Your Referent:</strong>
<div t-field="o.create_uid"
t-options='{"widget": "contact", "fields": ["name", "phone", "mobile"], "no_marker": true, "phone_icons": true}'/>
</div>
<div t-if="o.create_uid.name" class="col-xs-3">
<strong>Your Referent:</strong>
<div t-field="o.create_uid"
t-options='{"widget": "contact", "fields": ["name", "phone", "mobile"], "no_marker": true, "phone_icons": true}'/>
</div>
</div>
</template>
</data>
</div>
</template>
</data>
</odoo>

17
beesdoo_purchase/views/purchase_order.xml

@ -3,13 +3,16 @@
<record model="ir.ui.view" id="beesdoo_purchase_order_form_view">
<field name="name">beesdoo.purchase.order.form.view</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form" />
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
<field name="date_order" position="after">
<field name="supervisor_id"/>
</field>
<field name="supervisor_id"/>
</field>
<field name="product_id" position="attributes">
<attribute name="domain">[('main_seller_id','=', parent.partner_id), ('purchase_ok', '=', True)]</attribute>
<attribute name="domain">[
('main_seller_id','=', parent.partner_id),
('purchase_ok', '=', True) ]
</attribute>
</field>
</field>
</record>
@ -17,11 +20,11 @@
<record model="ir.ui.view" id="beesdoo_purchase_order_tree_view">
<field name="name">beesdoo.purchase.order.tree.view</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_tree" />
<field name="inherit_id" ref="purchase.purchase_order_tree"/>
<field name="arch" type="xml">
<field name="origin" position="after">
<field name="supervisor_id"/>
</field>
<field name="supervisor_id"/>
</field>
</field>
</record>

38
beesdoo_shift/data/cron.xml

@ -2,52 +2,52 @@
<data noupdate="1">
<record id="ir_cron_update_today" model="ir.cron">
<field name="name">Update Cooperatoor status base on the date</field>
<field name="model_id" ref="model_cooperative_status" />