- Dec 04, 2018
-
-
arbaes authored
With this commit, when a kit is processed trough an immediate transfer, the quantity done set on the kit is now propagated to its components. TaskID: 1896772 closes odoo/odoo#28998
-
- Nov 19, 2018
-
-
Jérome Maes authored
When creating a credit note from an invoice coming from a Sales Order, only the "modify" mode links the refund lines with the sale lines. This link make the invoiced quantity decreased on the sale line, which is a willing behavior. The 2 other modes ("cancel", and "create") does not do that link. As the behavior of the "modify" mode was introduced as bugfix years ago, it was time to clean that ! This commit - extends the behavior to every mode: all refund lines are now linked to their origin sale lines, so the invoiced quantities are correctly applied - clean the bricolage used to determine the invoice of the sales order (`_get_invoiced` method) by avoiding searching on the document source field. - provides some tests. The old one was moved and extended. Task-1859308 closes odoo/odoo#28471
-
- Dec 04, 2018
-
-
Robot Odoo authored
We don't want to bloat the company settings with the choice of the barcode nomenclature. We move this settings to event_barcode and stock_barcodes. task id 1903864 closes odoo/odoo#28346
-
- Dec 03, 2018
-
-
Robot Odoo authored
Add and improve demo data Task #1870050 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#28963
-
lul-odoo authored
On test fixes: Because the company now have parenthesis in its name, formatting email addresses adds double quotes around the name. e.g.: "My Company (San Francisco)" <example@exmaple.com>
-
lul-odoo authored
-
lul-odoo authored
-
lul-odoo authored
-
lul-odoo authored
-
lul-odoo authored
-
lul-odoo authored
-
Nimesh Jethva authored
* do not display the scrap button in receipt (we don't want to allow products not coming from your stock) * no scrap button when any picking is done * don't display the scrap moves, the user needs to go to the stat button Task ID 1913275 closes odoo/odoo#29097
-
Robot Odoo authored
The fields property_cost_method ad property_valuation are never shown on the products but they sometimes are set. This creates confusion and some difficulties in the migration (the cost method/valuation on the products are different than the one set on the categories). We remove them and only use the one on the categories. Task: 1866333 closes odoo/odoo#26008
-
Kinjal Mehta authored
-
Kinjal Mehta authored
-
Kinjal Mehta authored
-
- Nov 30, 2018
-
-
Robot Odoo authored
Purpose ======= For payroll purpose, we need to manage attendances. For instance, someone is working only mondays, tuesdays and fridays, but works exceptionally an other day. It must be recorded. Specification =========== The new models are used to represent attendances, extra hours and leaves (as `hr.benefit`s) in a new window called "Benefits". The schedule of employees for the full month is visible in that view (calendar view). First the benefits needs to be generated (via a button) based on the calendar attendances and leaves. The manager can then check benefits, delete or add some. Only the benefit name and type can be edited (not start and end dates). Once benefits are correct, they can be validated. Validation will fail if they are some leaves to approve or if some benefits overlap on the same day. Benefits cannot be deleted or edited once validated. When benefits are all validated, a button appears to generate payslips. Additional development ================== Most of the time we don't what is the next action that should be done when creating payslips or payslip batches. - Improve the layout, the buttons of the payroll object. - Refactor a little the code to reuse existing chunks of code instead of reinventing the wheel in several methods. - Remove the hr.rule.input model. - Remove an useless report. See each individual commit for more information. TaskID: 1912944, 1903239 closes odoo/odoo#29065
-
Pratima Gupta authored
property_cost_method is removed from product.product and product.template. And use property_cost_method of product.category everywhare. In This - Used property_cost_method of product.category instead of cost_method or property_cost_method of product.template. This commit is related to task#1866333.
-
Pratima Gupta authored
product.product and product.template. And use property_cost_method of product.category everywhare. In This - Used property_cost_method of product.category instead of cost_method or property_cost_method of product.template. This commit is related to task#1866333.
-
Yannick Tivisse authored
-
Yannick Tivisse authored
Same than for payslips. Improve the flow to make it clear what is the next action instead of displaying all the buttons. And refactor a little the code to be more efficient, and reuse existing method instead of using this horrible 'onchange_employee_id' method.
-
Yannick Tivisse authored
This field should be set by making a refund, it should be available for an end user.
-
Yannick Tivisse authored
When creating a payslip, if no batch is defined for it, put it automatically in a new batch.
-
Yannick Tivisse authored
Avoid to display the buttons on each stage (compute sheet, cancel, ...). Now the next action is clear on the payslip.
-
Yannick Tivisse authored
No need to display this information on every worked days/input lines It makes no sense to have a different contract on different payslip lines too.
-
Yannick Tivisse authored
-
Yannick Tivisse authored
This field brings nothing more than the payslip lines. Btw the term is badly chosen, it doesn't display the lines by salary rules category, it displays the payslip lines that have a category. The printed report is not very useful too. The only interesting part is the contribution register at the end of the report, and there is already a dedicated report for that.
-
Yannick Tivisse authored
There are currently 2 models: - hr.rule.input to link some inputs to an hr.payslip.rule - hr.payslip.input to add some additional inputs on a payslip. The first model is actually there to automatically add inputs on the additional inputs on the payslip. This is problematic because these rules are always added (For example a salary reduction due to a police fine). As these inputs are always added on the payslip, the the related rules are always computed with an amount of 0. We decided to remove this mechanism for the following reasons: - If the rule is important and common, then define the needed values on the contract, and compute the rules from that. - If the rule is not so important, it should be added manually when needed.
-
lul-odoo authored
Purpose ======= For payroll purpose, we need to manage attendances. For instance, someone is working only mondays, tuesdays and fridays, but works exceptionally an other day. It must be recorded. Specification ============= The new models are used to represent attendances, extra hours and leaves (as `hr.benefit`s) in a new window called "Benefits". The schedule of employees for the full month is visible in that view (calendar view). First the benefits needs to be generated (via a button) based on the calendar attendances and leaves. The manager can then check benefits, delete or add some. Only the benefit name and type can be edited (not start and end dates). Once benefits are correct, they can be validated. Validation will fail if they are some leaves to approve or if some benefits overlap on the same day. Benefits cannot be deleted or edited once validated. When benefits are all validated, a button appears to generate payslips. Closes #28261
-
lul-odoo authored
Purpose ======= More flexibility is useful when using the _attendance_intervals method (resource.calendar) in other modules when inheriting resource.calendar Specification ============= The commit adds a `domain` parameter to the _attendance_intervals method in resource.calendar, allowing to better control attendances from which to compute intervals. + small refactoring: extraction of duplicated code in method
-
lul-odoo authored
If the wizard to generate payslip was launched without an ´active_id´ in the context. A ´journal_id´ entry was set to False in the context later leading to a crash at payslip creation. The crash happens because, at creation time, the journal_id of a ´hr.payslip´ is set to the journal_id in the context if its present. Since this context entry is False and the journal_id field is required, creation crashes.
-
Géry Debongnie authored
Before this commit, the web client evaluated all modifiers (readonly/invisible/required) in some cases, even if it only needed one of them. This is clearly not optimal, and I even suppose that for large o2m, it could even have a noticeable effect on web client perceived speed This commit simply make sure that we evaluate only what we need in those cases. Note that it is not really a testable improvement, hence the lack of tests. closes odoo/odoo#29171
-
Kirti Choudhary authored
Traceback when the responsible is not set on an activity since it's a required field. In this case we will use the odoo system responsible for the activity. Also reintroduce the default value for the responsible as the user that create the product. The purpose is to avoid to log all the activity for the odoo system but to dispatch the exception between user, if a user create the product he will probably be responsible for it. It is always possible to remove the responsible or to modify it. Task ID - 1913168 closes odoo/odoo#29138
-
Arnold Moyaux authored
hs code was dropped in 12.0 however it shouldn't have been (commit 2d738f85). commit 498dbc54 created a new module in order to avoid losing hscode for existing database during migration. This commit set it back as before. closes odoo/odoo#29167
-
- Nov 29, 2018
-
-
Christophe Simonis authored
Oversight of previous forward-port
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Xavier Morel authored
_tag_delete was not properly converted when the _tag_ calling convention was modified in 4d581e26, so <delete> tags would all blow up if encountered. closes odoo/odoo#29149
-