Wednesday, October 5, 2022
57 changes · master
Enhancements to existing features
The spreadsheet component was updated to a newer version, adding several familiar formula options such as XLOOKUP, MID, PROPER, CLEAN, IFNA, and ISBLANK. Users can build richer spreadsheet reports and should see better performance for lookup-heavy calculations, along with small reliability improvements in formula handling and grid interactions.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/011aa0d4 [IMP] spreadsheet: export positionToZone helper https://github.com/odoo/o-spreadsheet/commit/b24e6483 [IMP]…
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/011aa0d4 [IMP] spreadsheet: export positionToZone helper https://github.com/odoo/o-spreadsheet/commit/b24e6483 [IMP] formula: ignore space when caching compiled formula https://github.com/odoo/o-spreadsheet/commit/65a67b51 [IMP] package.json: upgrade Typescript https://github.com/odoo/o-spreadsheet/commit/af4f2f58 [IMP] package.json: upgrade prettier https://github.com/odoo/o-spreadsheet/commit/4c15328d [IMP] functions: improve performance of lookup functions https://github.com/odoo/o-spreadsheet/commit/baafa638 [IMP] functions: add XLOOKUP function https://github.com/odoo/o-spreadsheet/commit/3d5c662e [IMP] functions: add MID function https://github.com/odoo/o-spreadsheet/commit/26f24529 [IMP] functions: add PROPER function https://github.com/odoo/o-spreadsheet/commit/07b4201f [IMP] functions: add CLEAN function https://github.com/odoo/o-spreadsheet/commit/adee58ff [IMP] functions: add IFNA function https://github.com/odoo/o-spreadsheet/commit/089f3b8d [IMP] functions: add ISBLANK function https://github.com/odoo/o-spreadsheet/commit/b638a3d5 [IMP] grid: use correct event attribute
The mail notification request logic was moved from screen components into the underlying data models. This internal cleanup makes the mail feature easier to maintain and evolve without changing how users interact with notifications.
Original PR description
Move methods on component to model record methods. Task-3004192.
eCommerce teams can now edit product tags from a dedicated submenu and set tag colors directly on products. This makes product labeling easier to manage and helps improve visual organization in the online shop.
Original PR description
This PR adds the possibility to change the product tag color on a product and also to edit those tags from a submenu of the eCommerce. Task: `2904805`
Resolved issues and error corrections
The Barcode tab now hides the 'Final Validation' setting when it has no applicable value. This keeps warehouse configuration screens cleaner and reduces confusion for users setting up picking types.
Original PR description
Make 'Final Validation' disappear from Barcode tab when empty. task: 3004014
Miscellaneous changes
Before this commit, in edit mode, it was not possible to close an open dropdown in the header. This was due to BS5. Before the '.show' class was added to the dropdown menu element (the element with the '.dropdown' class). But that changed, the '.show' class is now added on the button (the element with the '.dropdown-toggle' class). And as in edit mode, the openings/closing of the dropdowns are done manually in the header, it no longer worked correctly. task-3001198 Description of the is
Original PR description
Before this commit, in edit mode, it was not possible to close an open dropdown in the header. This was due to BS5. Before the '.show' class was added to the dropdown menu element (the element with the '.dropdown' class). But that changed, the '.show' class is now added on the button (the element with the '.dropdown-toggle' class). And as in edit mode, the openings/closing of the dropdowns are done manually in the header, it no longer worked correctly. task-3001198 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#101614
Before this commit the Device visibility option was on its own row inside the options panel. This commit moves the buttons of the Device visibility option before the dropdown inside the main row of the Visibility option. task-2900730 Forward-Port-Of: odoo/odoo#101941
Original PR description
Before this commit the Device visibility option was on its own row inside the options panel. This commit moves the buttons of the Device visibility option before the dropdown inside the main row of the Visibility option. task-2900730 Forward-Port-Of: odoo/odoo#101941
Steps : When the user is subscribed to the `Stage changed` subtype but not `Task in progress` and when the stage is changed users only subscribed to stage changed will not receive stage changed notification. Cause : When the stage is changed it will also change the kanban_state to in progress and due to that, it will track the kanban_state from _track_subtype, and the user who subscribed only stage_changed will not get notified. Fix : So in this commit, prioritize the stage_id changed n
Original PR description
Steps : When the user is subscribed to the `Stage changed` subtype but not `Task in progress` and when the stage is changed users only subscribed to stage changed will not receive stage changed notification. Cause : When the stage is changed it will also change the kanban_state to in progress and due to that, it will track the kanban_state from _track_subtype, and the user who subscribed only stage_changed will not get notified. Fix : So in this commit, prioritize the stage_id changed notification so that when the stage_id is changed we use that one, and the in-progress won't be triggered, but when we change the kanban state back to progress it will be triggered. As in progress is implicit when changing the stage_id. Task -2818058 Forward-Port-Of: odoo/odoo#102101 Forward-Port-Of: odoo/odoo#96375
The `<span>` was not properly closed. Forward-Port-Of: odoo/odoo#102039
Original PR description
The `<span>` was not properly closed. Forward-Port-Of: odoo/odoo#102039
Before this commit, in a list view, html fields in readonly mode were not rendered correctly. It displayed unprocessed HTML. For the value : <div>Hello</div> Before this commit, it was displaying: <div>Hello</div> After this commit, we display: Hello Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Original PR description
Before this commit, in a list view, html fields in readonly mode were not rendered correctly. It displayed unprocessed HTML.
For the value :
<div>Hello</div>
Before this commit, it was displaying:
<div>Hello</div>
After this commit, we display:
Hello
Description of the issue/feature this PR addresses:
Current behavior before PR:
Desired behavior after PR is merged:
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: odoo/odoo#100732Keyboard navigation was misleading, and it was adding a box around focused which was irremovable because it was injected by the browser in https://github.com/odoo/enterprise/pull/32095 but for disabling it, inheriting the template of kanban record is inevitable --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#101751
Original PR description
Keyboard navigation was misleading, and it was adding a box around focused which was irremovable because it was injected by the browser in https://github.com/odoo/enterprise/pull/32095 but for disabling it, inheriting the template of kanban record is inevitable --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#101751
This commit solves two bugs: 1. In a grouped empty list view, if you click on a sortable column, then a crash is displayed. How to reproduce: - Go to a grouped empty list view with at least one sortable column - Click on the sortable column Before this commit : A crash is displayed After this commit: Nothing happens. 2. In a grouped view with at least one open group, columns that do not have an aggregates value cannot be sorted. How to reproduce: - Go to a groupe
Original PR description
This commit solves two bugs:
1. In a grouped empty list view, if you click on a sortable column,
then a crash is displayed.
How to reproduce:
- Go to a grouped empty list view with at least one sortable column
- Click on the sortable column
Before this commit :
A crash is displayed
After this commit:
Nothing happens.
2. In a grouped view with at least one open group, columns that do not
have an aggregates value cannot be sorted.
How to reproduce:
- Go to a grouped list view with at least one open group.
- Click on a sortable column that does not have an aggregates value
Before this commit:
Nothing happens
After this commit:
The records are sorted by the clicked column.
Forward-Port-Of: odoo/odoo#101535Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#102095
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#102095
This commit fixes display issue of base_unit_price task-2996496 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#101591
Original PR description
This commit fixes display issue of base_unit_price task-2996496 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#101591
Hi, When we purchase 'bienes de inversión' with ISP (Inversión de sujetos pasivo) the base and tax amounts must be declared in 303 in two gaps different of current National ISP, that it fits only 'bienes corrientes and servicios corrientes'. In addition, we have to mark the invoice as 'BienInversion' to SII, like @jco-odoo said here https://github.com/OCA/l10n-spain/issues/1793, but it will be the next PR. Please @pedrobaeza @acysos @rafaelbn @HaraldPanten @AlbertCabedo etc. check this
Original PR description
Hi, When we purchase 'bienes de inversión' with ISP (Inversión de sujetos pasivo) the base and tax amounts must be declared in 303 in two gaps different of current National ISP, that it fits only…
Hi, When we purchase 'bienes de inversión' with ISP (Inversión de sujetos pasivo) the base and tax amounts must be declared in 303 in two gaps different of current National ISP, that it fits only 'bienes corrientes and servicios corrientes'. In addition, we have to mark the invoice as 'BienInversion' to SII, like @jco-odoo said here https://github.com/OCA/l10n-spain/issues/1793, but it will be the next PR. Please @pedrobaeza @acysos @rafaelbn @HaraldPanten @AlbertCabedo etc. check this Paste AEAT answer about this question: En cuanto al Modelo 303, una factura recibida correspondiente a un bien de inversión debe con Inversión del Sujeto Pasivo debe declararse tanto en las casillas 12 y 13 del IVA devengado como en las casillas 30 y 31 del IVA deducible (siempre que la adquisición o construcción, en su caso, de dicho bien de inversión se encuentre afecto a la actividad empresarial o profesional y se cumplan el resto de requisitos de deducción de las cuotas de IVA establecidos en los artículos 94 y siguientes de la Ley de IVA). Regards -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#101918 Forward-Port-Of: odoo/odoo#98021
When you add the categories on the left you can tell if the categories are collapsible or not. But the field appears below "datepicker" that we added with rental search taskid: 3004243 Forward-Port-Of: odoo/odoo#102027
Original PR description
When you add the categories on the left you can tell if the categories are collapsible or not. But the field appears below "datepicker" that we added with rental search taskid: 3004243 Forward-Port-Of: odoo/odoo#102027
taskid: 3000852 Forward-Port-Of: odoo/odoo#102035
Original PR description
taskid: 3000852 Forward-Port-Of: odoo/odoo#102035
In this commit we rewrite some tooltips because some of them are not correct in English and others are not valid anymore.Add some tooltips that could be missing and remove some tooltips that are not valid anymore. Forward-Port-Of: odoo/odoo#93274
Original PR description
In this commit we rewrite some tooltips because some of them are not correct in English and others are not valid anymore.Add some tooltips that could be missing and remove some tooltips that are not valid anymore. Forward-Port-Of: odoo/odoo#93274
- Make content helper more generic for programs - Add search fields for loyalty.card - Fix creation emails for gift cards in pos not being sent properly - Fix validity date check on loyalty rules being inverted. TaskId-3002190 Forward-Port-Of: odoo/odoo#102029
Original PR description
- Make content helper more generic for programs - Add search fields for loyalty.card - Fix creation emails for gift cards in pos not being sent properly - Fix validity date check on loyalty rules being inverted. TaskId-3002190 Forward-Port-Of: odoo/odoo#102029
Before this commit, the field terms and conditions was weardly placed And also reducing the size of the field quick_edit_total_amount task-id: 3003938 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#101855
Original PR description
Before this commit, the field terms and conditions was weardly placed And also reducing the size of the field quick_edit_total_amount task-id: 3003938 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#101855
## Task Description In some case, when trying to display the context menu on a pivot cell (doesn't seem to impact PIVOT.HEADER), we get a traceback caused by the arguments of the formula take into account in the `getFiltersMatchingPivot`, called by the `isVisible` property evaluation of the `set as filter` action. These errors only rise when using a pivot with `__count` as measure and a positional argument. ## Reproducibility This can be reproduced with the following steps: 1. Go to the
Original PR description
## Task Description In some case, when trying to display the context menu on a pivot cell (doesn't seem to impact PIVOT.HEADER), we get a traceback caused by the arguments of the formula take into…
## Task Description In some case, when trying to display the context menu on a pivot cell (doesn't seem to impact PIVOT.HEADER), we get a traceback caused by the arguments of the formula take into account in the `getFiltersMatchingPivot`, called by the `isVisible` property evaluation of the `set as filter` action. These errors only rise when using a pivot with `__count` as measure and a positional argument. ## Reproducibility This can be reproduced with the following steps: 1. Go to the CRM app 2. Create a pivot view 3. Group the row by Country 4. "Ungroup" the columns (keep only the total) 5. Set "__count" as measure 6. Insert the pivot on a new spreadsheet 7. Edit the pivot formulas to use positional argument for country_id 8. Insert a new filter on the country field 9. Right click on a pivot cell ## Fix Description This issue is coming from the fact we try to get the value related to a field in the pivot formula using the 2nd and 3rd argument instead of using the last two arguments of the formula. This is fixed by passing to `getPivotHeaderValue` only the last two arguments of the pivot formula. ## Related Task/PR - task-[2999181](https://www.odoo.com/web#cids=1&menu_id=4720&action=333&active_id=2328&model=project.task&view_type=form&id=2999181) - https://github.com/odoo/enterprise/pull/32151 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#101381
Forward-Port-Of: odoo/odoo#102015
Original PR description
Forward-Port-Of: odoo/odoo#102015
The commit 797c87d3948c0bf815a8a587a36be9e5bedb35de misses some diff. This commit contains the missing diff. Forward-Port-Of: odoo/odoo#102123
Original PR description
The commit 797c87d3948c0bf815a8a587a36be9e5bedb35de misses some diff. This commit contains the missing diff. Forward-Port-Of: odoo/odoo#102123
Two dropdown were too small, it's now corrected by adding a new group. task-id: 3006637 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#102086
Original PR description
Two dropdown were too small, it's now corrected by adding a new group. task-id: 3006637 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#102086
Two commits **[IMP] mrp_subcontracting: add some tests** Tests for - https://github.com/odoo/odoo/commit/e6a1e240f18bbc95475cd82154bb91a455704b15 - https://github.com/odoo/odoo/commit/fd22fe221026e353aac7414348b029ae7e290b2f **[FIX] purchase_stock, mrp_subcontracting_dropshipping: dropship to subcontract** A user can not buy a subcontracted product and directly deliver it (dropship) to another subcontractor. Moreover, in such situation, the received quantity is not correctly comp
Original PR description
Two commits **[IMP] mrp_subcontracting: add some tests** Tests for - https://github.com/odoo/odoo/commit/e6a1e240f18bbc95475cd82154bb91a455704b15 -…
Two commits
**[IMP] mrp_subcontracting: add some tests**
Tests for
- https://github.com/odoo/odoo/commit/e6a1e240f18bbc95475cd82154bb91a455704b15
- https://github.com/odoo/odoo/commit/fd22fe221026e353aac7414348b029ae7e290b2f
**[FIX] purchase_stock, mrp_subcontracting_dropshipping: dropship to subcontract**
A user can not buy a subcontracted product and directly deliver it
(dropship) to another subcontractor. Moreover, in such situation, the
received quantity is not correctly computed.
To reproduce the issue:
(Enable debug mode)
1. In Settings, enable "Storage Locations"
2. Create three products:
- P1:
- Storable
- With a vendor V1
- P2:
- Storable
- With a vendor V2
- P3:
- Consumable
3. Edit V1:
- Customer Location: Physical Locations/Subcontracting Location
4. Create two BoMs:
- Product: P1
- Type: Subcontracting
- Subcontractors: V1
- Components: 1 x P2
- Product: P2
- Type: Subcontracting
- Subcontractors: V2
- Components: 1 x P3
5. Create a PO:
- Vendor: V2
- Deliver To: Dropship
- Drop Ship Address: V1
- Products: 1 x P2
6. Confirm the PO
Error: a Validation Error is raised at `mrp.production` creation because
of a missing field (`picking_type_id`).
In some cases, when getting the values to create the MO, the basic
`_prepare_subcontract_mo_vals` does not return any `picking_type_id`.
That's the reason why an override has been added in
`/mrp_subcontracting_dropshipping` (see [1] for more details). Thanks to
this override, if the usage of the destination location is `customer`,
we know that we are in a "dropship" situation and we manually define the
`picking_type_id`:
https://github.com/odoo/odoo/blob/d73e70f22e47e81e59aff0c9f578aff260447256/addons/mrp_subcontracting_dropshipping/models/stock_picking.py#L15-L17
However, in the above case, the subcontracted stock move starts from a
subcontracted location and also goes to a subcontracted location
(because of step 3). As a result, the if-condition is not respected and
the `picking_type_id` is not defined.
Once this issue is solved, there is a second one: suppose the PO
confirmed. The user validates the transfer. New error: the received
quantity on the PO is not updated. This is because of an incorrect
condition in `/purchase_stock._compute_qty_received`:
https://github.com/odoo/odoo/blob/d0537e32e5aa4b0fe2ad674ab3ec7c42ae1a12f9/addons/purchase_stock/models/purchase.py#L306-L315
Added by [2] and modified by [3], this condition checks that:
- the destination location usage is `internal` (correct, this is a
subcontracting location)
- the source location usage is not `supplier` (correct, this is a
subcontracting location, so it is `internal`)
- the destination location is not part of the warehouse children (here
is the issue: the SM does not have any warehouse, so it gives a false
positive)
So, because of the incorrect third condition, the whole condition is
respected. And because `to_refund` is `False` (which is correct), we
don't do anything. That's the reason why the received quantity is not
updated.
[1] https://github.com/odoo/odoo/commit/d73e70f22e47e81e59aff0c9f578aff260447256
[2] https://github.com/odoo/odoo/commit/e6a1e240f18bbc95475cd82154bb91a455704b15
[3] https://github.com/odoo/odoo/commit/fd22fe221026e353aac7414348b029ae7e290b2f
OPW-2922546
Forward-Port-Of: odoo/odoo#102133
Forward-Port-Of: odoo/odoo#100565Description of the issue/feature this PR addresses: How to reproduce the problem: - Install the purchase_requistion, purchase_requistion_stock, and any Localization modules such as l10n_be or l10n_in (apart from USD currency any localization module) - Error caught only when at the time of module installation but it must have a different currency_id apart from USD https://watch.screencastify.com/v/1C7GQKHBASyiluGGkFfV Cause of the problem: Static values Currency USD cause the p
Original PR description
Description of the issue/feature this PR addresses: How to reproduce the problem: - Install the purchase_requistion, purchase_requistion_stock, and any Localization modules such as l10n_be or l10n_in…
Description of the issue/feature this PR addresses:
How to reproduce the problem:
- Install the purchase_requistion, purchase_requistion_stock, and any Localization modules such as l10n_be or l10n_in
(apart from USD currency any localization module)
- Error caught only when at the time of module installation but it must have a different currency_id apart from USD
https://watch.screencastify.com/v/1C7GQKHBASyiluGGkFfV
Cause of the problem:
Static values Currency USD cause the problem.
The following module will set the currency value to:
- `l10n_be` - `EUR`
- `l10n_in` - `INR`
- `l10n_br` - `BRL`
when we installed the following modules then `cls.env.user.company_id.currency_id` values get changes accordingly
will lead to this error while the test cases for `purchase_requisition` will run
```
Traceback (most recent call last):
File /home/odoo/src/odoo/addons/purchase_requisition/tests/common.py, line 70, in setUpClass
cls.env.user.company_id.currency_id = cls.env.ref(base.USD).id
File /home/odoo/src/odoo/odoo/fields.py, line 1217, in __set__
records.write({self.name: write_value})
File /home/odoo/src/odoo/addons/account/models/company.py, line 301, in write
raise UserError(_('You cannot change the currency of the company since some journal items already exist'))
odoo.exceptions.UserError: You cannot change the currency of the company since some journal items already exist
```
Current behavior before PR:
- Standard test cases failed of the `purchase_requisition` module while installing any localization module such as `l10n_be`, `l10n_in`
Desired behavior after PR is merged:
- standard test case of the `purchase_requisition` module get resolve
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: odoo/odoo#98174This commit converts `popover_widget`, `stock_rescheduling_popover` and `mrp_workorder_popover` to OWL --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#101618
Original PR description
This commit converts `popover_widget`, `stock_rescheduling_popover` and `mrp_workorder_popover` to OWL --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#101618
This websocket route needs to have been initiated with a peek first. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#100889
Original PR description
This websocket route needs to have been initiated with a peek first. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#100889
Description of the issue/feature this PR addresses: Throws error while clicking on the numpad Current behavior before PR: Error Pop-up Comes up Desired behavior after PR is merged: Error should not come [Odoo---Point-of-Sale-Issue.webm](https://user-images.githubusercontent.com/94813290/193445529-eb8a4961-8bb4-4120-8d04-bbc0b652dd1a.webm) --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#101839
Original PR description
Description of the issue/feature this PR addresses: Throws error while clicking on the numpad Current behavior before PR: Error Pop-up Comes up Desired behavior after PR is merged: Error should not come [Odoo---Point-of-Sale-Issue.webm](https://user-images.githubusercontent.com/94813290/193445529-eb8a4961-8bb4-4120-8d04-bbc0b652dd1a.webm) --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#101839
The `field_partner_autocomplete` & `res_partner_many2one` widgets are now converted to Owl. It required some changes in the `Autocomplete` component as we needed to access the ref of the `<input/>` element to pass it to the `useInputField` of `CharField`. The hook `useInputField` was also modified to allow passing a ref directly as parameter instead of a ref name. Forward-Port-Of: odoo/odoo#101098
Original PR description
The `field_partner_autocomplete` & `res_partner_many2one` widgets are now converted to Owl. It required some changes in the `Autocomplete` component as we needed to access the ref of the `<input/>` element to pass it to the `useInputField` of `CharField`. The hook `useInputField` was also modified to allow passing a ref directly as parameter instead of a ref name. Forward-Port-Of: odoo/odoo#101098
pivot, graph, cohort views do not care to know whether a field is readonly or required, as you cannot edit records in these views. Even kanban is readonly in most cases: - you can drag and drop records from one column to another, which is prevented if the group by field is readonly but this shouldn't rely on the fact the field is within the architecture, as you can group by on any fields from the search views / control panel. Hence, this shouldn't rely entirely on the modifie
Original PR description
pivot, graph, cohort views do not care to know whether a field is readonly or required, as you cannot edit records in these views. Even kanban is readonly in most cases: - you can drag and drop…
pivot, graph, cohort views do not care to know whether a field
is readonly or required, as you cannot edit records in these views.
Even kanban is readonly in most cases:
- you can drag and drop records from one column to another,
which is prevented if the group by field is readonly
but this shouldn't rely on the fact the field is
within the architecture, as you can group by on any fields
from the search views / control panel.
Hence, this shouldn't rely entirely on the modifiers passed on the field
nodes in the view architecture alone.
- you can create new record inside the kanban,
with a simplified form, thanks to the `quick_create`,
but this uses an independant form view, in which the readonly and
required modifiers are correctly passed.
So, `modifiers="{'readonly': true, 'required': true}"` can be dropped
for kanban views as well.
This allow to spare some KB by not setting useless modifiers in views.
e.g. CRM > My pipeline pivot
Before
```xml
<pivot string="Pipeline Analysis" sample="1">
<field name="create_date" interval="month" type="row" modifiers="{"readonly": true}"/>
<field name="stage_id" type="col" on_change="1" can_create="true" can_write="true"/>
<field name="expected_revenue" type="measure"/>
<field name="color" modifiers="{"invisible": true}"/>
<field name="automated_probability" modifiers="{"invisible": true, "readonly": true}"/>
<field name="message_bounce" modifiers="{"invisible": true}"/>
<field name="probability" on_change="1" modifiers="{"invisible": true}"/>
</pivot>
```
After
```xml
<pivot string="Pipeline Analysis" sample="1">
<field name="create_date" interval="month" type="row"/>
<field name="stage_id" type="col" on_change="1"/>
<field name="expected_revenue" type="measure"/>
<field name="color" modifiers="{"invisible": true}"/>
<field name="automated_probability" modifiers="{"invisible": true}"/>
<field name="message_bounce" modifiers="{"invisible": true}"/>
<field name="probability" on_change="1" modifiers="{"invisible": true}"/>
</pivot>
```
Regarding the change of behavior shown in `addons/web/static/tests/views/kanban_view_tests.js`.
It was introduced very recently, by myself, in
https://github.com/odoo/odoo/pull/100806
I revert this possibility to set readonly="0" on a field node in a
kanban view, because:
- First, this is not used anywhere in both odoo/odoo and
odoo/enterprise.
- Second, this really makes things harder if we want to do so:
- as readonly="0" is passed, the "readonly" gets removed from the node
modifiers, as they are simplified by removing falsy value:
modifiers="{'invisible: True, 'readonly': False}" becomes modifiers="{'invisible': True}"
- as readonly in not amongst the modifiers, it fallbacks on the model
field property, in the javascript code, which is readonly: True.
- the thing to do would be to still transfer "readonly"
from the field attributes to the node modifiers.
- which either mean to consider a kanban view as editable
- this will cause issues because the validation mechanism
will suddenly check the domain attribute property
https://github.com/odoo/odoo/blob/d4a92b112d0554a2624f7768feb7d54e0484469f/odoo/addons/base/models/ir_ui_view.py#L1443
and there will be plenty of views where some field used in the
domains will be missing. Besides it is pointless to validate these
domains as they are completely unused in kanban views
- either mean to find another mechanism than "editable" to decide
wheter to transfer the modifiers "readonly"/"required" or not,
which over-complicates things.
- besides only "readonly" would need to be passed, not "required.
So, to keep the code stupid simple, I remove this possibility added only
a few days ago, which is actually not used anywhere in standard for the
moment.
Forward-Port-Of: odoo/odoo#101924Before this commit, when we go to a Task. Click on the Tags field > Search More. Group by Projects. We get a list of project groups. Click on them and they go from (x) to (0) due to invalid group result from read_group without valid domain same as search_read. So in this commit, override the read_group method to pass the valid domain same as search_read. task-2959382 Forward-Port-Of: odoo/odoo#98582
Original PR description
Before this commit, when we go to a Task. Click on the Tags field > Search More. Group by Projects. We get a list of project groups. Click on them and they go from (x) to (0) due to invalid group result from read_group without valid domain same as search_read. So in this commit, override the read_group method to pass the valid domain same as search_read. task-2959382 Forward-Port-Of: odoo/odoo#98582
Purpose ======= Check the existence of the relational properties (many2one / many2many) in batch and prefetch the values in batch as well to reduce the number of SQL queries. Allow to add the properties field in the kanban view. An option has been added in the property definition, "View In Kanban", to decide which field must be visible in the kanban view. This is useful when having several properties and to avoid cluttering the UI. This merge also contain some fixes, see sub commi
Original PR description
Purpose ======= Check the existence of the relational properties (many2one / many2many) in batch and prefetch the values in batch as well to reduce the number of SQL queries. Allow to add the properties field in the kanban view. An option has been added in the property definition, "View In Kanban", to decide which field must be visible in the kanban view. This is useful when having several properties and to avoid cluttering the UI. This merge also contain some fixes, see sub commits for more details. Task-2965523 Forward-Port-Of: odoo/odoo#101417
Since the usage of the `CSS Grid` some view are broken due to too much CSS rules conflicting together. The new form view system is less tolerant to missing colspan. This commit, change the colspan when needed (e.g. no label) Steps to reproduce: * Go to sale * Select the product menu * Select a product (e.g. Printer) * Some fields on the form view (in panel) are not aligned => BUG --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-
Original PR description
Since the usage of the `CSS Grid` some view are broken due to too much CSS rules conflicting together. The new form view system is less tolerant to missing colspan. This commit, change the colspan when needed (e.g. no label) Steps to reproduce: * Go to sale * Select the product menu * Select a product (e.g. Printer) * Some fields on the form view (in panel) are not aligned => BUG --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#102071
The condition that determines whether to display the tax base was wrong It should be displayed when either condition is met: - There are multiple tax base amounts - The only tax base amount is not the same as the untaxed amount Note that this last case may happen with cash discounts Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.
Original PR description
The condition that determines whether to display the tax base was wrong It should be displayed when either condition is met: - There are multiple tax base amounts - The only tax base amount is not the same as the untaxed amount Note that this last case may happen with cash discounts Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#102103
Forward-Port-Of: odoo/odoo#102202
Original PR description
Forward-Port-Of: odoo/odoo#102202
If the decimal separator of the currently selected language is a comma, exporting data in an xlsx would use a wrong float format Steps to reproduce: 1. Install Invoicing 2. Go to Settings > Languages, add 'French / Français' language and switch to it 3. Go to Facturation > Fournisseurs > Factures 4. Export the data (there should be at least one amount with a decimal part) 5. The decimal part of the amounts is not displayed Solution: Always use the same decimal separator to p
Original PR description
If the decimal separator of the currently selected language is a comma, exporting data in an xlsx would use a wrong float format Steps to reproduce: 1. Install Invoicing 2. Go to Settings >…
If the decimal separator of the currently selected language is a comma, exporting data in an xlsx would use a wrong float format Steps to reproduce: 1. Install Invoicing 2. Go to Settings > Languages, add 'French / Français' language and switch to it 3. Go to Facturation > Fournisseurs > Factures 4. Export the data (there should be at least one amount with a decimal part) 5. The decimal part of the amounts is not displayed Solution: Always use the same decimal separator to print in the xlsx as we can only use a dot as a decimal separator (the comma is used as the thousand separator). The value will then be displayed to the user according to his OS regional settings (see https://xlsxwriter.readthedocs.io/format.html#number-formats-in-different-locales) Problem: When using a comma for the float format, we actually specify the format of the integral part of the number (the thousands) without displaying the decimal part (which is represented with the dot) opw-2965984 Forward-Port-Of: odoo/odoo#102188 Forward-Port-Of: odoo/odoo#99286
Customer display does not show the appropriate logo when multi-company is enabled. The logo shown is always the logo of the default company. Step to reproduce the issue: 1) Install Point of Sale and set up a second company 2) Put a logo on both companies (different ones) 3) Create a POS session on the newest company (not the default one) 4) In this session, activate Customer Display 5) Launch the session and open the Customer Display The logo shown is the logo of the default company.
Original PR description
Customer display does not show the appropriate logo when multi-company is enabled. The logo shown is always the logo of the default company. Step to reproduce the issue: 1) Install Point of Sale and…
Customer display does not show the appropriate logo when multi-company is
enabled. The logo shown is always the logo of the default company.
Step to reproduce the issue:
1) Install Point of Sale and set up a second company
2) Put a logo on both companies (different ones)
3) Create a POS session on the newest company (not the default one)
4) In this session, activate Customer Display
5) Launch the session and open the Customer Display
The logo shown is the logo of the default company.
Solution: The issue is that when fetching the logo, we don't include
information about the current company. Thus, we include the logo of the default
company (at url /logo). We can easily specifiy which logo we need via the url
/logo?company={company_id}. As dynamic information cannot be included into a
CSS, we include this into the XML as it is done with other images rendered.
In our case, we don't need to retrieve the logo and map it to base 64 (for
ressources requiring to be logged in) because the logo is a resource available
to anyone.
opw-2745014
Forward-Port-Of: odoo/odoo#102136
Forward-Port-Of: odoo/odoo#93638Steps to reproduce: - go to expense - select Mileage [MIL] - Save Issue: Cannot save, different UOM opw-3001568 Forward-Port-Of: odoo/odoo#102183
Original PR description
Steps to reproduce: - go to expense - select Mileage [MIL] - Save Issue: Cannot save, different UOM opw-3001568 Forward-Port-Of: odoo/odoo#102183
There was an option in the legacy ModelFieldSelector that could be used to prevent following the relations. This option was lost since the widget has been converted. This commit simply reintroduces the option. Forward-Port-Of: odoo/odoo#102050
Original PR description
There was an option in the legacy ModelFieldSelector that could be used to prevent following the relations. This option was lost since the widget has been converted. This commit simply reintroduces the option. Forward-Port-Of: odoo/odoo#102050
The followup rework didn't implement the case when a company would have no followup line defined. This would lead to tracebacks when trying to manually followup partners for such companies: - when computing the followup status/line - when setting a date for the next followup action When joining invoices to a followup letter, every unpaid invoice would be attached, including those that are supposed to be blocked. Some CSS changes broke the display of the followup wizard, rendering it unre
Original PR description
The followup rework didn't implement the case when a company would have no followup line defined. This would lead to tracebacks when trying to manually followup partners for such companies: - when…
The followup rework didn't implement the case when a company would have no followup line defined. This would lead to tracebacks when trying to manually followup partners for such companies: - when computing the followup status/line - when setting a date for the next followup action When joining invoices to a followup letter, every unpaid invoice would be attached, including those that are supposed to be blocked. Some CSS changes broke the display of the followup wizard, rendering it unreadable. This commit fixes those issues by: - fixing the followup process when no followup lines are defined (allowing a similar flow, but with default values instead of the followup line's values) - only including invoices that are not blocked when joining them to a followup letter - fixing the followup wizard layout (mainly reworking the colspan for groups) Quik note on the no followup line defined: A company should be able to manually followup on customers even when they have not created any followup level (line). As for automatic followup, none will done as it requires the status of the customer to be 'in need of action', which it never is when there is no followup level created. Regarding the default delay of 14 days and the setting of a next followup action date, this fix doesn't aim at changing that since it was how it was done before. However, after further discussion with CHKL and QDP, we will improve this later down the line as it seems a bit too arbitrary. Part of the big task fixing bugs in accounting Task id=2996493 Forward-Port-Of: odoo/enterprise#32163
Since the usage of the `CSS Grid` some view are broken due to too much CSS rules conflicting together. The new form view system is less tolerant to missing colspan. This commit, change the colspan when needed (e.g. no label) Steps to reproduce: * Go to sale * Select the product menu * Select a product (e.g. Printer) * Some fields on the form view (in panel) are not aligned => BUG Forward-Port-Of: odoo/enterprise#32254
Original PR description
Since the usage of the `CSS Grid` some view are broken due to too much CSS rules conflicting together. The new form view system is less tolerant to missing colspan. This commit, change the colspan when needed (e.g. no label) Steps to reproduce: * Go to sale * Select the product menu * Select a product (e.g. Printer) * Some fields on the form view (in panel) are not aligned => BUG Forward-Port-Of: odoo/enterprise#32254
Purpose ======= Add the properties field in the embed kanban view. Task-3003927 Forward-Port-Of: odoo/enterprise#32182
Original PR description
Purpose ======= Add the properties field in the embed kanban view. Task-3003927 Forward-Port-Of: odoo/enterprise#32182
The rendering of the partner autocomplete widget has changed a bit since its Owl conversion, the triggers needed to be updated to reflect that. Community PR : odoo/odoo/pull/101098 Forward-Port-Of: odoo/enterprise#32090
Original PR description
The rendering of the partner autocomplete widget has changed a bit since its Owl conversion, the triggers needed to be updated to reflect that. Community PR : odoo/odoo/pull/101098 Forward-Port-Of: odoo/enterprise#32090
-- I confirm I have signed the CLA and read the PR guidelines at [www.odoo.com/submit-pr](http://www.odoo.com/submit-pr) Forward-Port-Of: odoo/enterprise#31611
Original PR description
-- I confirm I have signed the CLA and read the PR guidelines at [www.odoo.com/submit-pr](http://www.odoo.com/submit-pr) Forward-Port-Of: odoo/enterprise#31611
There is an issue when a reserved package was scanned in an operation. It does a line update on multiple lines at once, each line wanted to set the user id on the picking, breacking an SQL constraint in `mail.followers`. Forward-Port-Of: odoo/enterprise#31983
Original PR description
There is an issue when a reserved package was scanned in an operation. It does a line update on multiple lines at once, each line wanted to set the user id on the picking, breacking an SQL constraint in `mail.followers`. Forward-Port-Of: odoo/enterprise#31983
The current account.report filter on fiscal position removes the possibility to access the tax report of a country where a company as a VAT number. This removes the dependency on the filter to compute the availability of display Signed-off-by: Julien Alardot (jual) <jual@odoo.com> Forward-Port-Of: odoo/enterprise#32110
Original PR description
The current account.report filter on fiscal position removes the possibility to access the tax report of a country where a company as a VAT number. This removes the dependency on the filter to compute the availability of display Signed-off-by: Julien Alardot (jual) <jual@odoo.com> Forward-Port-Of: odoo/enterprise#32110
This commit applies the same behavior between the community and the enterprise for the `o_field_widget o_input:hover` effect. Before this commit the hover on community applies a border on all quadrant, now we only see the bottom border as in Odoo Enterprise Forward-Port-Of: odoo/enterprise#32257
Original PR description
This commit applies the same behavior between the community and the enterprise for the `o_field_widget o_input:hover` effect. Before this commit the hover on community applies a border on all quadrant, now we only see the bottom border as in Odoo Enterprise Forward-Port-Of: odoo/enterprise#32257
## Task Description In some case, when trying to display the context menu on a pivot cell (doesn't seem to impact PIVOT.HEADER), we get a traceback caused by the arguments of the formula take into account in the ´getFiltersMatchingPivot`, called by the "isVisible" property evaluation of the "set as filter" action. These errors only rise when using a pivot with "__count" as measure and a positional argument. Moreover, when trying to open the context menu with a filter defined without any
Original PR description
## Task Description In some case, when trying to display the context menu on a pivot cell (doesn't seem to impact PIVOT.HEADER), we get a traceback caused by the arguments of the formula take into…
## Task Description In some case, when trying to display the context menu on a pivot cell (doesn't seem to impact PIVOT.HEADER), we get a traceback caused by the arguments of the formula take into account in the ´getFiltersMatchingPivot`, called by the "isVisible" property evaluation of the "set as filter" action. These errors only rise when using a pivot with "__count" as measure and a positional argument. Moreover, when trying to open the context menu with a filter defined without any field, we get another traceback. ## Reproducibility The first issue can be reproduced with the following steps: 1. Go to the CRM app 2. Create a pivot view 3. Group the row by Country 4. "Ungroup" the columns (keep only the total) 5. Set "__count" as measure 6. Insert the pivot on a new spreadsheet 7. Edit the pivot formulas to use positional argument for country_id 8. Insert a new filter on the country field 9. Right click on a pivot cell The second issue can be reproduced with the following steps: 1. Open a spreadsheet with a pivot 2. Add a filter related to the pivot but without any field matching 3. Right-click on a pivot cell ## Fix Description The first issue is coming from the fact we try to get the value related to a field in the pivot formula using the 2nd and 3rd argument instead of using the last two arguments of the formula. This is fixed by passing to getPivotHeaderValue only the last two arguments of the pivot formula. For the second issue, we simply check that the pivot field is defined before looking at its name. ## Related Task/PR task-2999181 https://github.com/odoo/odoo/pull/101381/ Forward-Port-Of: odoo/enterprise#32151
In this commit we rewrite some tooltips because some of them are not correct in English and others are not valid anymore.Add some tooltips that could be missing and remove some tooltips that are not valid anymore Forward-Port-Of: odoo/enterprise#28229
Original PR description
In this commit we rewrite some tooltips because some of them are not correct in English and others are not valid anymore.Add some tooltips that could be missing and remove some tooltips that are not valid anymore Forward-Port-Of: odoo/enterprise#28229
We now force _report_ at the beginning of the custom functions, to better restrict the call possibilities. Forward-Port-Of: odoo/enterprise#32267
Original PR description
We now force _report_ at the beginning of the custom functions, to better restrict the call possibilities. Forward-Port-Of: odoo/enterprise#32267
taskid: 3000852 Forward-Port-Of: odoo/enterprise#32238
Original PR description
taskid: 3000852 Forward-Port-Of: odoo/enterprise#32238
see: https://github.com/odoo/odoo/pull/102027 Forward-Port-Of: odoo/enterprise#32232
Original PR description
see: https://github.com/odoo/odoo/pull/102027 Forward-Port-Of: odoo/enterprise#32232
This commit fixes display issue of base_unit_price task-2996496 Forward-Port-Of: odoo/enterprise#32176
Original PR description
This commit fixes display issue of base_unit_price task-2996496 Forward-Port-Of: odoo/enterprise#32176
Adding this widget to the field registry allows it to be used in form, list and kanban views, which isn't the point here. It is directly imported by the grid view, where it is meant to be used. Forward-Port-Of: odoo/enterprise#32265
Original PR description
Adding this widget to the field registry allows it to be used in form, list and kanban views, which isn't the point here. It is directly imported by the grid view, where it is meant to be used. Forward-Port-Of: odoo/enterprise#32265
The dropdown of the fiscal day was too small task-id: 3002033 Forward-Port-Of: odoo/enterprise#32064
Original PR description
The dropdown of the fiscal day was too small task-id: 3002033 Forward-Port-Of: odoo/enterprise#32064
Keyboard navigation was misleading, and it was adding a box around focused which was irremovable because it was injected by the browser Required Community PR: https://github.com/odoo/odoo/pull/101751 Forward-Port-Of: odoo/enterprise#32095
Original PR description
Keyboard navigation was misleading, and it was adding a box around focused which was irremovable because it was injected by the browser Required Community PR: https://github.com/odoo/odoo/pull/101751 Forward-Port-Of: odoo/enterprise#32095
+ fix for "Your rental product cannot be prepared as fast, please rent later." code task_id: 3001403 Forward-Port-Of: odoo/enterprise#32230
Original PR description
+ fix for "Your rental product cannot be prepared as fast, please rent later." code task_id: 3001403 Forward-Port-Of: odoo/enterprise#32230