odoo-addon-stock-picking-partner-note 16.0.1.0.1__py3-none-any.whl → 16.0.1.1.0.1__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ Stock Picking Partner Note
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:64e21fed2985a09f0a10ef6763d0dc6d45a8a863c6a23312967a4e559ac9e7c8
10
+ !! source digest: sha256:f95766f575f6b83457b2b0d305d7506a2be1f61adfe5eb9f8581aff1fa377bb9
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -45,6 +45,9 @@ Configuration
45
45
  * In shipping operation types set field `Partner Note Type`. Only these types will be shown in picking operations notes.
46
46
  * On contacts add picking notes.
47
47
 
48
+
49
+ You can prevent users ot update or delete notes alredy in use by multiple customers by activating setting `Prevent update or delete of notes in use by multiple customers` in Inventory > Configuration > Settings.
50
+
48
51
  Bug Tracker
49
52
  ===========
50
53
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  {
5
5
  "name": "Stock Picking Partner Note",
6
- "version": "16.0.1.0.1",
6
+ "version": "16.0.1.1.0",
7
7
  "development_status": "Beta",
8
8
  "category": "Product",
9
9
  "summary": "Add partner notes on picking",
@@ -18,6 +18,7 @@
18
18
  "views/stock_picking_type.xml",
19
19
  "views/stock_picking_note.xml",
20
20
  "views/stock_picking_partner_note_menus.xml",
21
+ "views/res_config_settings.xml",
21
22
  ],
22
23
  "installable": True,
23
24
  "auto_install": False,
@@ -10,11 +10,88 @@ msgstr ""
10
10
  "PO-Revision-Date: 2024-02-05 10:49+0000\n"
11
11
  "Last-Translator: \n"
12
12
  "Language-Team: \n"
13
+ "Language: \n"
13
14
  "MIME-Version: 1.0\n"
14
15
  "Content-Type: text/plain; charset=UTF-8\n"
15
16
  "Content-Transfer-Encoding: \n"
16
17
  "Plural-Forms: \n"
17
18
 
19
+ #. module: stock_picking_partner_note
20
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note__active
21
+ msgid "Active"
22
+ msgstr ""
23
+
24
+ #. module: stock_picking_partner_note
25
+ #: model_terms:ir.ui.view,arch_db:stock_picking_partner_note.res_config_settings_view_form
26
+ msgid ""
27
+ "Add a constraint to check if the picking note is already in use on multiple "
28
+ "partner"
29
+ msgstr ""
30
+ "Ajout d'une contrainte pour vérifier si la note de prélèvement est déjà "
31
+ "utilisée par plusieurs partenaires"
32
+
33
+ #. module: stock_picking_partner_note
34
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_res_company__check_note_already_in_use
35
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_res_config_settings__check_note_already_in_use
36
+ msgid "Check picking note already in use"
37
+ msgstr "Vérifier la note de prélèvement déjà utilisée"
38
+
39
+ #. module: stock_picking_partner_note
40
+ #: model:ir.model,name:stock_picking_partner_note.model_res_company
41
+ msgid "Companies"
42
+ msgstr ""
43
+
44
+ #. module: stock_picking_partner_note
45
+ #: model:ir.model,name:stock_picking_partner_note.model_res_config_settings
46
+ msgid "Config Settings"
47
+ msgstr ""
48
+
49
+ #. module: stock_picking_partner_note
50
+ #: model:ir.model,name:stock_picking_partner_note.model_res_partner
51
+ msgid "Contact"
52
+ msgstr ""
53
+
54
+ #. module: stock_picking_partner_note
55
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note__create_uid
56
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note_type__create_uid
57
+ msgid "Created by"
58
+ msgstr ""
59
+
60
+ #. module: stock_picking_partner_note
61
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note__create_date
62
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note_type__create_date
63
+ msgid "Created on"
64
+ msgstr ""
65
+
66
+ #. module: stock_picking_partner_note
67
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note__display_name
68
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note_type__display_name
69
+ msgid "Display Name"
70
+ msgstr ""
71
+
72
+ #. module: stock_picking_partner_note
73
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note__id
74
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note_type__id
75
+ msgid "ID"
76
+ msgstr ""
77
+
78
+ #. module: stock_picking_partner_note
79
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note____last_update
80
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note_type____last_update
81
+ msgid "Last Modified on"
82
+ msgstr ""
83
+
84
+ #. module: stock_picking_partner_note
85
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note__write_uid
86
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note_type__write_uid
87
+ msgid "Last Updated by"
88
+ msgstr ""
89
+
90
+ #. module: stock_picking_partner_note
91
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note__write_date
92
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note_type__write_date
93
+ msgid "Last Updated on"
94
+ msgstr ""
18
95
 
19
96
  #. module: stock_picking_partner_note
20
97
  #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note__name
@@ -28,10 +105,14 @@ msgid "Note Type"
28
105
  msgstr "Type de note"
29
106
 
30
107
  #. module: stock_picking_partner_note
31
- #: model:ir.ui.menu,name:stock_picking_partner_note.stock_picking_note_types_menu_menu
108
+ #: model:ir.ui.menu,name:stock_picking_partner_note.stock_picking_note_types_menu
32
109
  msgid "Note Types"
33
110
  msgstr "Type de notes"
34
111
 
112
+ #. module: stock_picking_partner_note
113
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking__note
114
+ msgid "Notes"
115
+ msgstr ""
35
116
 
36
117
  #. module: stock_picking_partner_note
37
118
  #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_type__partner_note_type_ids
@@ -39,16 +120,70 @@ msgid "Partner Note Type"
39
120
  msgstr "Type de note partenaire"
40
121
 
41
122
  #. module: stock_picking_partner_note
123
+ #: model:ir.model,name:stock_picking_partner_note.model_stock_picking_note
42
124
  #: model_terms:ir.ui.view,arch_db:stock_picking_partner_note.view_stock_picking_note_form
43
125
  msgid "Picking Note"
44
126
  msgstr "Note d'opération"
45
127
 
46
128
  #. module: stock_picking_partner_note
129
+ #: model:ir.model,name:stock_picking_partner_note.model_stock_picking_note_type
47
130
  #: model_terms:ir.ui.view,arch_db:stock_picking_partner_note.view_stock_picking_note_type_form
48
131
  msgid "Picking Note Type"
49
132
  msgstr "Opération Type de note"
50
133
 
51
134
  #. module: stock_picking_partner_note
52
- #: model_terms:ir.ui.view,arch_db:stock_picking_partner_note.view_stock_picking_note_type_tree
53
- msgid "Picking Note Types"
54
- msgstr "Opération Types de note"
135
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_res_partner__stock_picking_note_ids
136
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_res_users__stock_picking_note_ids
137
+ #: model:ir.ui.menu,name:stock_picking_partner_note.stock_picking_notes_root
138
+ #: model_terms:ir.ui.view,arch_db:stock_picking_partner_note.view_partner_form_inherit
139
+ msgid "Picking Notes"
140
+ msgstr ""
141
+
142
+ #. module: stock_picking_partner_note
143
+ #: model:ir.model,name:stock_picking_partner_note.model_stock_picking_type
144
+ msgid "Picking Type"
145
+ msgstr ""
146
+
147
+ #. module: stock_picking_partner_note
148
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note__sequence
149
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_stock_picking_note_type__sequence
150
+ msgid "Sequence"
151
+ msgstr ""
152
+
153
+ #. module: stock_picking_partner_note
154
+ #: model:ir.actions.act_window,name:stock_picking_partner_note.stock_picking_note_types_act_window
155
+ msgid "Stock Picking Note Types"
156
+ msgstr ""
157
+
158
+ #. module: stock_picking_partner_note
159
+ #: model:ir.model.fields,help:stock_picking_partner_note.field_res_config_settings__check_note_already_in_use
160
+ msgid ""
161
+ "That must be activated if you want to prevent the update or deletion of a "
162
+ "note that is already in use by multiple contacts."
163
+ msgstr ""
164
+
165
+ #. module: stock_picking_partner_note
166
+ #: model:ir.model,name:stock_picking_partner_note.model_stock_picking
167
+ msgid "Transfer"
168
+ msgstr ""
169
+
170
+ #. module: stock_picking_partner_note
171
+ #: model:ir.model.fields,help:stock_picking_partner_note.field_stock_picking_type__partner_note_type_ids
172
+ msgid ""
173
+ "Type of note with customer preferences on how his products are prepared for "
174
+ "delivery."
175
+ msgstr ""
176
+
177
+ #. module: stock_picking_partner_note
178
+ #. odoo-python
179
+ #: code:addons/stock_picking_partner_note/models/stock_picking_note.py:0
180
+ #, python-format
181
+ msgid ""
182
+ "You cannot update or delete a note that linked to multiple contacts: "
183
+ "%(partner_ids)s"
184
+ msgstr ""
185
+ "Vous ne pouvez pas mettre à jour ou supprimer une note liée à plusieurs "
186
+ "contacts."
187
+
188
+ #~ msgid "Picking Note Types"
189
+ #~ msgstr "Opération Types de note"
@@ -21,6 +21,29 @@ msgstr ""
21
21
  msgid "Active"
22
22
  msgstr "Attiva"
23
23
 
24
+ #. module: stock_picking_partner_note
25
+ #: model_terms:ir.ui.view,arch_db:stock_picking_partner_note.res_config_settings_view_form
26
+ msgid ""
27
+ "Add a constraint to check if the picking note is already in use on multiple "
28
+ "partner"
29
+ msgstr ""
30
+
31
+ #. module: stock_picking_partner_note
32
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_res_company__check_note_already_in_use
33
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_res_config_settings__check_note_already_in_use
34
+ msgid "Check picking note already in use"
35
+ msgstr ""
36
+
37
+ #. module: stock_picking_partner_note
38
+ #: model:ir.model,name:stock_picking_partner_note.model_res_company
39
+ msgid "Companies"
40
+ msgstr ""
41
+
42
+ #. module: stock_picking_partner_note
43
+ #: model:ir.model,name:stock_picking_partner_note.model_res_config_settings
44
+ msgid "Config Settings"
45
+ msgstr ""
46
+
24
47
  #. module: stock_picking_partner_note
25
48
  #: model:ir.model,name:stock_picking_partner_note.model_res_partner
26
49
  msgid "Contact"
@@ -130,6 +153,13 @@ msgstr "Sequenza"
130
153
  msgid "Stock Picking Note Types"
131
154
  msgstr "Tipi nota prelievo magazzino"
132
155
 
156
+ #. module: stock_picking_partner_note
157
+ #: model:ir.model.fields,help:stock_picking_partner_note.field_res_config_settings__check_note_already_in_use
158
+ msgid ""
159
+ "That must be activated if you want to prevent the update or deletion of a "
160
+ "note that is already in use by multiple contacts."
161
+ msgstr ""
162
+
133
163
  #. module: stock_picking_partner_note
134
164
  #: model:ir.model,name:stock_picking_partner_note.model_stock_picking
135
165
  msgid "Transfer"
@@ -143,3 +173,12 @@ msgid ""
143
173
  msgstr ""
144
174
  "Tipo nota con preferenze cliente su come i suoi prodotti sono preparati per "
145
175
  "la spedizione."
176
+
177
+ #. module: stock_picking_partner_note
178
+ #. odoo-python
179
+ #: code:addons/stock_picking_partner_note/models/stock_picking_note.py:0
180
+ #, python-format
181
+ msgid ""
182
+ "You cannot update or delete a note that linked to multiple contacts: "
183
+ "%(partner_ids)s"
184
+ msgstr ""
@@ -18,6 +18,29 @@ msgstr ""
18
18
  msgid "Active"
19
19
  msgstr ""
20
20
 
21
+ #. module: stock_picking_partner_note
22
+ #: model_terms:ir.ui.view,arch_db:stock_picking_partner_note.res_config_settings_view_form
23
+ msgid ""
24
+ "Add a constraint to check if the picking note is already in use on multiple "
25
+ "partner"
26
+ msgstr ""
27
+
28
+ #. module: stock_picking_partner_note
29
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_res_company__check_note_already_in_use
30
+ #: model:ir.model.fields,field_description:stock_picking_partner_note.field_res_config_settings__check_note_already_in_use
31
+ msgid "Check picking note already in use"
32
+ msgstr ""
33
+
34
+ #. module: stock_picking_partner_note
35
+ #: model:ir.model,name:stock_picking_partner_note.model_res_company
36
+ msgid "Companies"
37
+ msgstr ""
38
+
39
+ #. module: stock_picking_partner_note
40
+ #: model:ir.model,name:stock_picking_partner_note.model_res_config_settings
41
+ msgid "Config Settings"
42
+ msgstr ""
43
+
21
44
  #. module: stock_picking_partner_note
22
45
  #: model:ir.model,name:stock_picking_partner_note.model_res_partner
23
46
  msgid "Contact"
@@ -127,6 +150,13 @@ msgstr ""
127
150
  msgid "Stock Picking Note Types"
128
151
  msgstr ""
129
152
 
153
+ #. module: stock_picking_partner_note
154
+ #: model:ir.model.fields,help:stock_picking_partner_note.field_res_config_settings__check_note_already_in_use
155
+ msgid ""
156
+ "That must be activated if you want to prevent the update or deletion of a "
157
+ "note that is already in use by multiple contacts."
158
+ msgstr ""
159
+
130
160
  #. module: stock_picking_partner_note
131
161
  #: model:ir.model,name:stock_picking_partner_note.model_stock_picking
132
162
  msgid "Transfer"
@@ -138,3 +168,12 @@ msgid ""
138
168
  "Type of note with customer preferences on how his products are prepared for "
139
169
  "delivery."
140
170
  msgstr ""
171
+
172
+ #. module: stock_picking_partner_note
173
+ #. odoo-python
174
+ #: code:addons/stock_picking_partner_note/models/stock_picking_note.py:0
175
+ #, python-format
176
+ msgid ""
177
+ "You cannot update or delete a note that linked to multiple contacts: "
178
+ "%(partner_ids)s"
179
+ msgstr ""
@@ -3,3 +3,5 @@ from . import stock_picking_note
3
3
  from . import stock_picking_type
4
4
  from . import stock_picking
5
5
  from . import res_partner
6
+ from . import res_company
7
+ from . import res_config_settings
@@ -0,0 +1,13 @@
1
+ # Copyright 2024 Camptocamp (<https://www.camptocamp.com>).
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+
4
+ from odoo import fields, models
5
+
6
+
7
+ class ResCompany(models.Model):
8
+ _inherit = "res.company"
9
+
10
+ check_note_already_in_use = fields.Boolean(
11
+ string="Check picking note already in use",
12
+ default=False,
13
+ )
@@ -0,0 +1,15 @@
1
+ # Copyright 2024 Camptocamp (<https://www.camptocamp.com>).
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+
4
+ from odoo import fields, models
5
+
6
+
7
+ class ResConfigSettings(models.TransientModel):
8
+ _inherit = "res.config.settings"
9
+
10
+ check_note_already_in_use = fields.Boolean(
11
+ related="company_id.check_note_already_in_use",
12
+ readonly=False,
13
+ help="That must be activated if you want to prevent the update or deletion "
14
+ "of a note that is already in use by multiple contacts.",
15
+ )
@@ -2,7 +2,8 @@
2
2
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
3
 
4
4
 
5
- from odoo import fields, models
5
+ from odoo import _, api, fields, models
6
+ from odoo.exceptions import UserError
6
7
 
7
8
 
8
9
  class StockPickingNote(models.Model):
@@ -14,3 +15,25 @@ class StockPickingNote(models.Model):
14
15
  active = fields.Boolean(default=True)
15
16
  note_type_id = fields.Many2one("stock.picking.note.type", required=True)
16
17
  sequence = sequence = fields.Integer(related="note_type_id.sequence", store=True)
18
+
19
+ def write(self, vals):
20
+ self.check_note_already_in_use()
21
+ return super().write(vals)
22
+
23
+ @api.ondelete(at_uninstall=False)
24
+ def check_note_already_in_use(self):
25
+ if not self.env.user.company_id.check_note_already_in_use:
26
+ return True
27
+ for note in self:
28
+ partners = self.env["res.partner"].search(
29
+ [("stock_picking_note_ids", "in", note.ids)]
30
+ )
31
+ if len(partners) > 1:
32
+ raise UserError(
33
+ _(
34
+ "You cannot update or delete a note that linked to multiple"
35
+ " contacts: %(partner_ids)s",
36
+ partner_ids=", ".join(partners.mapped("name")),
37
+ )
38
+ )
39
+ return True
@@ -1,3 +1,6 @@
1
1
  * Create partner note types in Inventory > Configuration > Note Types.
2
2
  * In shipping operation types set field `Partner Note Type`. Only these types will be shown in picking operations notes.
3
3
  * On contacts add picking notes.
4
+
5
+
6
+ You can prevent users ot update or delete notes alredy in use by multiple customers by activating setting `Prevent update or delete of notes in use by multiple customers` in Inventory > Configuration > Settings.
@@ -366,7 +366,7 @@ ul.auto-toc {
366
366
  !! This file is generated by oca-gen-addon-readme !!
367
367
  !! changes will be overwritten. !!
368
368
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369
- !! source digest: sha256:64e21fed2985a09f0a10ef6763d0dc6d45a8a863c6a23312967a4e559ac9e7c8
369
+ !! source digest: sha256:f95766f575f6b83457b2b0d305d7506a2be1f61adfe5eb9f8581aff1fa377bb9
370
370
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371
371
  <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-workflow/tree/16.0/stock_picking_partner_note"><img alt="OCA/stock-logistics-workflow" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_picking_partner_note"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-workflow&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372
372
  <p>Allow to record a message for the person in charge of order preparation at the level of the customer,
@@ -391,6 +391,7 @@ then have it as a note on the picking transfer.</p>
391
391
  <li>In shipping operation types set field <cite>Partner Note Type</cite>. Only these types will be shown in picking operations notes.</li>
392
392
  <li>On contacts add picking notes.</li>
393
393
  </ul>
394
+ <p>You can prevent users ot update or delete notes alredy in use by multiple customers by activating setting <cite>Prevent update or delete of notes in use by multiple customers</cite> in Inventory &gt; Configuration &gt; Settings.</p>
394
395
  </div>
395
396
  <div class="section" id="bug-tracker">
396
397
  <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
@@ -1,6 +1,7 @@
1
1
  # Copyright 2024 Camptocamp (<https://www.camptocamp.com>).
2
2
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
3
 
4
+ from odoo.exceptions import UserError
4
5
  from odoo.tests import Form, common
5
6
 
6
7
  from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
@@ -42,3 +43,26 @@ class StockPickingPartnerNote(common.TransactionCase):
42
43
  ]
43
44
  self.order.action_confirm()
44
45
  self.assertIn("<p>Note 1<br>Note 2</p>", self.order.picking_ids[0].note)
46
+
47
+ def test_no_check_note_already_in_use(self):
48
+ self.assertTrue(
49
+ self.partner_a.stock_picking_note_ids.check_note_already_in_use()
50
+ )
51
+
52
+ def test_picking_partner_note_already_in_use(self):
53
+ """Test that we cannot update or delete a note that is already in use."""
54
+ self.env.user.company_id.check_note_already_in_use = True
55
+ partner_b = self.env["res.partner"].create(
56
+ {
57
+ "name": "Customer B",
58
+ "stock_picking_note_ids": [
59
+ (4, self.partner_a.stock_picking_note_ids[0].id),
60
+ ],
61
+ }
62
+ )
63
+ # We cannot update a note that is already in use
64
+ with self.assertRaises(UserError):
65
+ partner_b.stock_picking_note_ids.write({"name": "Changed Note"})
66
+ # We cannot delete a note that is already in use
67
+ with self.assertRaises(UserError):
68
+ partner_b.stock_picking_note_ids.unlink()
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <odoo>
3
+ <record id="res_config_settings_view_form" model="ir.ui.view">
4
+ <field name="name">res.config.settings.view.form </field>
5
+ <field name="model">res.config.settings</field>
6
+ <field name="inherit_id" ref="stock.res_config_settings_view_form" />
7
+ <field name="arch" type="xml">
8
+ <xpath expr="//div[@name='operations_setting_container']" position="inside">
9
+ <div
10
+ class="col-12 col-lg-6 o_setting_box"
11
+ id="check_pickings_partner_note"
12
+ >
13
+ <div class="o_setting_left_pane">
14
+ <field name="check_note_already_in_use" />
15
+ </div>
16
+ <div class="o_setting_right_pane">
17
+ <label for="check_note_already_in_use" />
18
+ <div class="text-muted">
19
+ Add a constraint to check if the picking note is already in use on multiple partner
20
+ </div>
21
+ </div>
22
+ </div>
23
+ </xpath>
24
+ </field>
25
+ </record>
26
+ </odoo>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-stock-picking-partner-note
3
- Version: 16.0.1.0.1
3
+ Version: 16.0.1.1.0.1
4
4
  Summary: Add partner notes on picking
5
5
  Home-page: https://github.com/OCA/stock-logistics-workflow
6
6
  Author: Camptocamp, BCIM, Odoo Community Association (OCA)
@@ -24,7 +24,7 @@ Stock Picking Partner Note
24
24
  !! This file is generated by oca-gen-addon-readme !!
25
25
  !! changes will be overwritten. !!
26
26
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
- !! source digest: sha256:64e21fed2985a09f0a10ef6763d0dc6d45a8a863c6a23312967a4e559ac9e7c8
27
+ !! source digest: sha256:f95766f575f6b83457b2b0d305d7506a2be1f61adfe5eb9f8581aff1fa377bb9
28
28
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
29
 
30
30
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -62,6 +62,9 @@ Configuration
62
62
  * In shipping operation types set field `Partner Note Type`. Only these types will be shown in picking operations notes.
63
63
  * On contacts add picking notes.
64
64
 
65
+
66
+ You can prevent users ot update or delete notes alredy in use by multiple customers by activating setting `Prevent update or delete of notes in use by multiple customers` in Inventory > Configuration > Settings.
67
+
65
68
  Bug Tracker
66
69
  ===========
67
70
 
@@ -1,29 +1,32 @@
1
- odoo/addons/stock_picking_partner_note/README.rst,sha256=VGSVF1NfPech4K01oY0DoeKTpOEVbdnjmWww4_s4yec,3411
1
+ odoo/addons/stock_picking_partner_note/README.rst,sha256=EKroDVCAVyg8n75qhviW84OeuMdAsdEYKWsjMuwycwM,3625
2
2
  odoo/addons/stock_picking_partner_note/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
- odoo/addons/stock_picking_partner_note/__manifest__.py,sha256=2Wig4wNGWwo9-esw97lNUnIl5PknbtaHirGILlPi_Tc,828
4
- odoo/addons/stock_picking_partner_note/i18n/fr.po,sha256=Qp1HwTlL7IEO_as6VIdwkgw2ikNYFw2njxBy_EZhVUc,1875
5
- odoo/addons/stock_picking_partner_note/i18n/it.po,sha256=T25Qa6Juvk1JmEj6UA0pwxcmxy3Dq3_VosQ6lfioUYU,6094
6
- odoo/addons/stock_picking_partner_note/i18n/stock_picking_partner_note.pot,sha256=BzeQGGNDmcsPKV3PShPZWIeeCsz_TQ2L6V1t8SZbj2I,5572
7
- odoo/addons/stock_picking_partner_note/models/__init__.py,sha256=fo93TC7xx5_dqYRX0-wBH6f1yIEmsfep6_Bj4QZz5es,158
3
+ odoo/addons/stock_picking_partner_note/__manifest__.py,sha256=WntfrjSOleqy1VbHs98Xyxn91jv86a1869LLlKyCKJw,869
4
+ odoo/addons/stock_picking_partner_note/i18n/fr.po,sha256=tJzeD7sXJ8H9qrgdZM6NTT84I_k9Rs966GhWS7jgDrM,7497
5
+ odoo/addons/stock_picking_partner_note/i18n/it.po,sha256=f6A8R8IxJIjsO3l1VgXOCTiYnT_4hezA1VxHza4v3IE,7495
6
+ odoo/addons/stock_picking_partner_note/i18n/stock_picking_partner_note.pot,sha256=326zr2Vo-Rwvmf0t0rY9oOn1CQTo3cHbl18hpoqqAKw,6973
7
+ odoo/addons/stock_picking_partner_note/models/__init__.py,sha256=C5g13oWt395D_7CtHPwpu5KDgBEL0paUab__nMNAnhY,218
8
+ odoo/addons/stock_picking_partner_note/models/res_company.py,sha256=NQRu3aViUyeBJ5uc-2aE7V1ySCbeO7mA4-3UBDH2Zs8,355
9
+ odoo/addons/stock_picking_partner_note/models/res_config_settings.py,sha256=JnxCYKvoDx-O_Oz65GAz1YVfX8r5_GJXt9eLq927djY,535
8
10
  odoo/addons/stock_picking_partner_note/models/res_partner.py,sha256=YLqIag5JMOGnljGXveZ3Q2x1h_ALk6tF1bB4xcPTCNM,355
9
11
  odoo/addons/stock_picking_partner_note/models/stock_picking.py,sha256=Uv9poBEL8GRv6yyJjx_sZddZwDqhbc5chm-RXh8OWag,878
10
- odoo/addons/stock_picking_partner_note/models/stock_picking_note.py,sha256=J0v_BxDwbFzR0d08gZUWwd3fe3-GgqZnVKGP2nl_nTs,543
12
+ odoo/addons/stock_picking_partner_note/models/stock_picking_note.py,sha256=LAFEsLYIyfOI1QDOWO2LgTYYfzuwXjSCMmWjDgPhSCE,1381
11
13
  odoo/addons/stock_picking_partner_note/models/stock_picking_note_type.py,sha256=Mb5kwt-r4gEed18iXCv-SQ-S6PUePh2YEQ7PxUhopFM,384
12
14
  odoo/addons/stock_picking_partner_note/models/stock_picking_type.py,sha256=slcSkS4AuxUU7QoVID1FhvP8A2DGveiSX5zywElE6kI,440
13
- odoo/addons/stock_picking_partner_note/readme/CONFIGURE.rst,sha256=-xsx7cDYNtSpcSwsZlHKdovPUumeHLjIQI-5id4ptWg,226
15
+ odoo/addons/stock_picking_partner_note/readme/CONFIGURE.rst,sha256=C4_5CLgbUYvtFw2tGZeO3RvT9u0Ide4P6Po2V3hKJcc,440
14
16
  odoo/addons/stock_picking_partner_note/readme/CONTRIBUTORS.rst,sha256=sfvO9BtVwUIrFyQgykMypZz3Q8kUd2s8TDwPNQP8sFQ,84
15
17
  odoo/addons/stock_picking_partner_note/readme/DESCRIPTION.rst,sha256=C3wQ1ZopCUOMXu6OKLBFsDwF62u5YmtK9gFJlfi4Z_8,153
16
18
  odoo/addons/stock_picking_partner_note/security/ir.model.access.csv,sha256=sOOFUStf_LyAwznmBINMJInwLAsZAVgpUL0E8jPMWlY,331
17
19
  odoo/addons/stock_picking_partner_note/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
18
- odoo/addons/stock_picking_partner_note/static/description/index.html,sha256=dcNazCFYCGBsnj5fupC1uSOOuTQSZxV835zUqK4_XnQ,12976
20
+ odoo/addons/stock_picking_partner_note/static/description/index.html,sha256=zXRT4fmK-1LGfojDWp0jg1tjpdruB6ZG32E1sn5SH1w,13212
19
21
  odoo/addons/stock_picking_partner_note/tests/__init__.py,sha256=7TX0jPKYXKSm7NIfBAE8_Mg2yvc3WnKp-E3GyWyVGyw,46
20
- odoo/addons/stock_picking_partner_note/tests/test_stock_picking_partner_note.py,sha256=j-zB5J0KJcbOEDvwnUVPJ3sHxVaDHKAOuz8u4M4xXE0,1810
22
+ odoo/addons/stock_picking_partner_note/tests/test_stock_picking_partner_note.py,sha256=PULGmgxfjsEoJZX1ssONSV2ZcCFFEKvPTrFphzmUNww,2808
23
+ odoo/addons/stock_picking_partner_note/views/res_config_settings.xml,sha256=mAXNWXkQPnop_tfDI-Cr0oRWOb0yUj7GAG2d7EzZ0H4,1163
21
24
  odoo/addons/stock_picking_partner_note/views/res_partner.xml,sha256=BKjJAFh_cwRO1GqoTr0ZmSESwFMjCRIAfEOvMtW0MOo,1056
22
25
  odoo/addons/stock_picking_partner_note/views/stock_picking_note.xml,sha256=k_pAGRqFU_gjhdYHShM10WsAA0rW9Q89xuGTnB7Lg4Q,564
23
26
  odoo/addons/stock_picking_partner_note/views/stock_picking_note_type.xml,sha256=pmuwn8GZlsmyTwKIEvDPogeVO0ztx_OHnEI1d0OYc8I,1245
24
27
  odoo/addons/stock_picking_partner_note/views/stock_picking_partner_note_menus.xml,sha256=qkcYr_ynaXigua9nXgSxXOlChsxWEOT17J_ZdEeSQus,465
25
28
  odoo/addons/stock_picking_partner_note/views/stock_picking_type.xml,sha256=kO90qgmbO8FXpzNbIB_bMIysZBDxbjNKfJXc6FKrz_8,520
26
- odoo_addon_stock_picking_partner_note-16.0.1.0.1.dist-info/METADATA,sha256=rNCz7VAJm0EvVXmZ0911qMHrHxX95B0fak4az2NjA3w,4022
27
- odoo_addon_stock_picking_partner_note-16.0.1.0.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
28
- odoo_addon_stock_picking_partner_note-16.0.1.0.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
29
- odoo_addon_stock_picking_partner_note-16.0.1.0.1.dist-info/RECORD,,
29
+ odoo_addon_stock_picking_partner_note-16.0.1.1.0.1.dist-info/METADATA,sha256=teyVHo4lts76ckkAGDsZFsW4cbe7gvB217o_CNkC5Cw,4238
30
+ odoo_addon_stock_picking_partner_note-16.0.1.1.0.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
31
+ odoo_addon_stock_picking_partner_note-16.0.1.1.0.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
32
+ odoo_addon_stock_picking_partner_note-16.0.1.1.0.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5