File tree Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
# © 2016 Chafique DELLI @ Akretion
2
2
# © 2017 Today Mourad EL HADJ MIMOUNE @ Akretion
3
3
# 2020 Manuel Calero - Tecnativa
4
+ # 2025 Robrecht Colson - Gumbys
4
5
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
5
6
{
6
7
"name" : "Purchase and Invoice Allowed Product" ,
Original file line number Diff line number Diff line change 1
1
# Copyright 2017 Today Mourad EL HADJ MIMOUNE @ Akretion
2
2
# Copyright 2020 Tecnativa - Manuel Calero
3
3
# Copyright 2020 Tecnativa - Pedro M. Baeza
4
+ # Copyright 2025 Gumbys - Robrecht Colson
4
5
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
5
6
6
7
from odoo import api , models
@@ -16,7 +17,6 @@ def _search(
16
17
offset = 0 ,
17
18
limit = None ,
18
19
order = None ,
19
- access_rights_uid = None ,
20
20
):
21
21
if self .env .context .get ("use_only_supplied_product" ):
22
22
restrict_supplier_id = self .env .context .get ("restrict_supplier_id" )
@@ -38,5 +38,4 @@ def _search(
38
38
offset = offset ,
39
39
limit = limit ,
40
40
order = order ,
41
- access_rights_uid = access_rights_uid ,
42
41
)
Original file line number Diff line number Diff line change 1
1
# Copyright 2017 Today Mourad EL HADJ MIMOUNE @ Akretion
2
2
# Copyright 2020 Tecnativa - Pedro M. Baeza
3
+ # Copyright 2025 Gumbys - Robrecht Colson
3
4
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
4
5
5
-
6
- from odoo .tests .common import Form , TransactionCase
6
+ from odoo . tests import Form
7
+ from odoo .tests .common import TransactionCase
7
8
8
9
9
10
class TestPurchaseAllowedProduct (TransactionCase ):
Original file line number Diff line number Diff line change 12
12
/>
13
13
</xpath >
14
14
<xpath
15
- expr =" //field[@name='invoice_line_ids']/tree /field[@name='product_id']"
15
+ expr =" //field[@name='invoice_line_ids']/list /field[@name='product_id']"
16
16
position =" attributes"
17
17
>
18
18
<attribute name =" context" >
Original file line number Diff line number Diff line change 8
8
<field name =" use_only_supplied_product" widget =" boolean_toggle" />
9
9
</xpath >
10
10
<xpath
11
- expr =" //field[@name='order_line']/tree /field[@name='product_id']"
11
+ expr =" //field[@name='order_line']/list /field[@name='product_id']"
12
12
position =" attributes"
13
13
>
14
14
<attribute name =" context" operation =" update" >
You can’t perform that action at this time.
0 commit comments