Before this commit, when a hierarchy of options was displayed in the
editor left panel and that the user click on any one, the related
snippet was enabled making all the children options disappear (like
the "go to parent" button in the old UI). Now we only keep this behavior
when we click on the title of the snippet's options.
closesodoo/odoo#37538
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
- Connect a real barcode scanner.
- Start a POS session.
- Scan a product. The product appears in the list properly with a quantity at 1
- Scan the product again.
Before this commit:
After the second scan the quantity is the number represented by the barcode.
The reason for this being that it's allowed to type a quantity with a numpad,
but the scanner works pretty much like a keyboard.
After this commit:
Scanning a product multiple times just increase the quantity by one. But you
can still type the quantity with a numpad, provided you don't type as fast as
a barcode scanner.
closesodoo/odoo#37530
Opw: 2075470
X-original-commit: db3ae61c00364894fef4684f34143f1cf575e882
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
— Have a POS in a multi-companies environment;
— the multi-companies environment configuration don't have a 'Common
Contact Book';
— user 'A' open a session in the company 'Z';
— user 'A' closes the POS without closing the session;
— user 'A' change of company to company 'Y';
— user 'B' opens the POS application in company 'Z'.
Before this commit, an error message was shown, because user 'B' didn't
have access to the name of user 'A' when user 'A' is not in the same
company.
Now, the name of user 'A' is shown correctly in the dashboard.
opw-2075388
closesodoo/odoo#37529
X-original-commit: b149522b281a5fcf8fe6d3d7421e364acb46e888
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
The notification for quotation/sale order would always say "See Sale
Order" and things (in the notification view, not inside) and not
"Quotation" if it is a quotation.
Do something similar to what was done for purchase in 3f72a8fab.
note: foward port of #37395 (half-fix is in 25153b but not translatable)
opw-207060
closes#37463closesodoo/odoo#37519
X-original-commit: fe3df270e19f77ce5d29b101f32834e96089a0d6
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Currently if we try to display image of a rating having a different value of
0/1/5/10 there is an infinite loading. Indeed images for rating are limited
to those values.
In this commit we fix that by computing a rounded value to find the closest
image.
Text display in form view is also centered for better wow onboarding back 2
basics demo usability fiximp effect.
This commit slightly improves the utm.campaign kanban view by reordering statistics and changing
their display.
Task#2077579
closesodoo/odoo#37518
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
The import button on timesheet list view is not visible
for now. This commit makes it reappear, as we want to
handle that use case, since it is a common action for
end user.
opw-2077117
closesodoo/odoo#37498
X-original-commit: 5fb7ab44e1a113339c2ad797dfd2eb8ddfa4bf78
Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
Suppose the following workflow:
- Creates a new vendor bill.
- Set an accounting date but no bill date.
- Post the vendor bill => accounting date / bill date are set at today.
This behavior is due to the fact the user didn't set a bill date.
This commit aims to set a default bill date to encourage the user to edit it
instead of letting it empty.
Any new line (components or by products) in the produce wizard
will be now added from the bottom of the One2many widget.
closesodoo/odoo#37514
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Suppose a tax cash basis without account_id set on any repartition lines.
Before this commit, the generation of the cash basis entry failed because
odoo tried to create an account.move.line without account_id.
With this commit, a fallback is made on the base line account_id in case
of missing account_id on the tax repartition line.
closesodoo/odoo#37499
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
This commit moves most of the logic of cover edition to website. This
will allow to define cover on other non-blog models, like events.
Note: this also "accidentally" fixes a crash during rendering of the
blog page when there is no blog or post.
Part of https://github.com/odoo/odoo/pull/37009
task-2043872
When copying a task, we need its company to be the
one in its new project.
Task-1999686
closesodoo/odoo#37108
Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
When encoding a timesheet, we want it to be linked to an employee of the
same company. Purpose is for the current user to find its correct employee
directly, and so its timesheet cost.
Task-1999686
As the ORM now supports some helpers to handle
multi company environment, it is recommended to
use them. So, this commit changes technically
some aspect of the multi company consistency
implemented a few commit ago.
Task-1999686
This commit makes possible the task delegation in a multi company
environement. A subtask is a normal task with a parent, but can
now be in a different company, to be use as subcontracting task in
another company.
Tests are added to check multi company consistency for the project
app in general and for the subtask cases.
Task-1999686
This commit completes what was initiated a few time ago : a substask
is like a normal task and can now live its own life, being in another
project, attached to another customer, billed on another sale line, ...
than its mother.
The informations coming from the parent are only use as default values to
prefill the form view (with default options on creation, or though `onchange`
when setting the parent on existing task).
No values are forced now.
Form, default context, and others views has been adapted to make this feature
works.
Task-1982072
On the product form view, the forcast stat button should open
the Graph view by default and not the grid one
closesodoo/odoo#37501
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
before this commit:
the icon was not there in proper position
after this commit:
the icon is at proper position
task- 2074108
closesodoo/odoo#37352
Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
Before this commit, when user has no extra access rights, clicking on
create in Expense raises an Access Right Error.
This fix solves the issue by sudoing the access on
account.analytic.default in the onchange method causing the error.
Task-2069060
closesodoo/odoo#36572
Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
Adds a test to be sure `product.template` can be create with a
responsible when:
- The product has no `company_id` (the responsible must belong to the
user's company in this case).
- The product `company_id` is one of the companies of its responsible.
And to be sure that we can't create a `product.template` if its
responsible doesn't belong the product's company.
closesodoo/odoo#37362
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Before this commit, when a record of a model who has a `res.users` field
it could fail the `check_company` because the check looks for
`company_id` who is the default company of the user.
In the case of `res.users`, `check_company` must look after the
`company_ids` of the user.
The domain for the tags in the taxes indicates that the country must be
the same that the tax country:
domain="[('applicability', '=', 'taxes'), ('country_id', '=', country_id)]"
For this reason is necessary assign the country in the tags, to allow
register new taxes or change the tag in the records created.
closesodoo/odoo#37482
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
When a lead entered a wrong email address in the contact form,
this crashes when loading visitor view.
We were doing a email concatenation to have all the email address
of the leads linked to the visitor.
But as it is a cornet case that shouls not happens often
(to have multiplus email address linked to the visitor)
we will only keep the last email addresse entered by the visitor.
Task ID: 2077182
PR #37472
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
When the user do not set a company on a route and check warehouse selectable
then it's impossible to select a warehouse. It happens due to the
check_company domain ['|', ('company_id', '=', company_id)('company_id','=',False)]
closesodoo/odoo#37404
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Initial spec was to add month after activity name in the kanban
journal view. However this does not work when tax period is quarter
and also the month is always displayed even on other activities which
we don't want.
Reverting this commit and another task will come later to improve the
display on the journal kanban activities.
closesodoo/odoo#37277
Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
- Multi-company: Fix domains on wizard / company.
- Multi-currency: Manage multi-currency when generating accrual lines.
- Moves creation: Avoid creating too much moves:
[1-2] moves was created per line before this commit.
[1-2] moves are created per invoice with this commit.
- Invoice type: Allow accrual only one posted journal entries.
closesodoo/odoo#37487
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Add a hook inside mail_thread to be able to get a custom message at
the record creation.
Override this hook in account.move to get a custom creation message
dependent of the move's type.
closesodoo/odoo#37474
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Planning workorder will generate workorder lines according to reservation
If some lines are already created into the workorder for the current product,
The line generation will increase the quantity of the existing one instead of creating
a new one. The issue occurs when the production have some stock move with the same
product.
This commit change the condition to find workorder line candidate. Instead of searching
line with same product, we now search line with same stock move.
closesodoo/odoo#37419
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>