Commit Graph
50 Commits
Author SHA1 Message Date
Christophe Simonis 845f4ef7d3 [MERGE] forward port branch saas-11.2 up to 8a7b845353 2018-03-23 10:31:00 +01:00
Jaykishan Solanki 55a7ac412b [FIX] purchase_requisition: multicurrency
When creating the supplier info record from a blanket order, do pass
the `currency_id` field.

task 1814507
2018-03-22 14:21:31 +01:00
Christophe Simonis 0f57bdba72 [MERGE] forward port branch saas-11.2 up to 42659dc70c 2018-03-09 16:25:58 +01:00
Raphael Collet 42798b9337 [FIX] purchase_requisition: decorator on create 2018-03-06 11:25:11 +01:00
jao-odoo 84a75ef851 Saas 11.2 account fix analytic accounting jao (#23110)
[IMP] purchase_requisition : add analytic_tag_ids field in purchase requistion

[IMP] sale: set analytic tags on invoice based on the analytic tags defined on SO

[IMP] account_analytic_default: add default analytic tags to invoice lines created from SO for down payment


(#23110)
2018-03-05 14:30:11 +01:00
XavierDo 2966d4faed [IMP] product: rename product.uom into uom.uom
Also rename product.uom.categ into uom.category to
 give it a decent name.
2018-02-26 14:27:26 +01:00
jao-odoo 5d2c63bf49 [IMP] purchase_requisition : Remove field account_analytic_id from purchase requisition (#22910)
This field was already on the product lines.
2018-02-26 11:52:10 +01:00
William Henrotin dd610140bf [FIX] purchase_requisition delete requisition.
The PurchaseRequisition unlink method call the wrong variable
2018-02-12 13:52:19 +01:00
William Henrotin 7ad9f28895 [FIX] purchase_requisition remove api.multi in action_in_progress
The action_in_progress method was tagged as api.multi but badly. so we
remove it and add an ensure_one() check.
2018-02-12 13:52:19 +01:00
William Henrotin ab4b03efcd [FIX] purchase_requisition sequence handling
As the sequence name depends on the requisition type. The name must be
set not when the requisition is in draft but confirmed. In the confirm
state, the type in readonly. The name is also reset when the requisition
is put in draft.
2018-02-12 13:52:19 +01:00
William Henrotin 69890545b0 [FIX] purchase_requisition edit product price to 0
When editing a blanket order, if the price change, the price also change
in the supplier info. The issue is we can set 0 in the price.
2018-02-12 13:52:19 +01:00
Nirali Sapra 4cfda8cef9 [IMP] purchase : improve the error message for Purchase Requisition. 2018-02-07 16:26:57 +01:00
Arnold Moyaux 3169832a7d [IMP] sale_stock: decrease ordered qty log impacted pickings
When the user decrease the quantity on the SO it will log the
activity on a the upsteam documents however the user can't easily
find the impacted documents linked to it. In order to achieve that
the _get_upstream_documents_and_responsibles method pass a stack
that remember all the documents browsed in order to return the final
document. This stack is then passed in the _render_method in log activity
in order to use it when rendering the note for the activity.
2018-02-01 15:26:59 +01:00
Arnold Moyaux fe1a34bb42 [IMP] purchase_requisition: activity if the SO is modified.
return the linked requisition line and the responsible for the requisition
instead of returning the origin moves. there should be nothing upper
the requisition itself so we don't need anymore to grind documents in order
to find the upstream one. More information about _get_upstream_documents_and_responsibles
in method _log_activity_get_documents in stock_picking.py
2018-02-01 15:26:59 +01:00
William Henrotin 373eb4bf42 [REF] purchase_requisition: separate PO for different BO.
If two blanket order are active with the same vendor, we have to produce
two separate purchase orders even if the two products are ordered in the
same operation.
2018-02-01 15:11:15 +01:00
William Henrotin 8b5401864d [REF] purchase_requisition: multi-currency support
If the parameter multi currency is enabled, the field currency is added
in the purchase requisition form. The currency chosen will be the one by
default in the PO attached to the BO
2018-02-01 15:11:15 +01:00
William Henrotin 1c458d9e99 [REF] purchase_requisition: PO creation from blanket order
If a there is blanket order in 'ongoing' state and linked with the purchase
order's vendor, we can choose associate it to the PO to retrieve the contrat
price and impact the ordered quantity.

If a purchase order is created from a blanket order, the vendor is
linked to the BO reference. So we forbid its edition once its choose.
2018-02-01 15:11:15 +01:00
William Henroin e85838d358 [REF] purchase_requisition: adapt sequence of supplierinfo
When creating a blanket order, it will generate a supplier info for the
associated product. If there is already a supplier info for the same product
and same vendor, the sequence should be adapted to take the one created via
blanket order before the other(s) one(s).
2018-02-01 15:11:15 +01:00
William Henroin b3ac2d2f48 [REF] purchase_requisition: new stages workflow for blanket orders
The stages workflow of purchase tender is not suitable for blanket order.
the steps bid selection is use only with purchase tender. Now :
PT : draft -> confirmed -> bid selection -> closed
BO : draft -> ongoing -> closed
2018-02-01 15:11:15 +01:00
William Henroin 87af05ae76 [REF] purchase_requisition: blanket order generate sellerinfo
The blanket order is a contract between you and a supplier on a
different
price (usually lower than normal) for a big quantity of some specific
products.

The goal is to generate a supplier info for each product of the blanket
order and
remove them when the BO is either closed or cancel.
2018-02-01 15:11:15 +01:00
William Henrotin 8d0be4059a [REF] purchase_requisition: sequence handling
When creating a draft purchase agreement, a reference number was generated even if
we do not click the 'Save' button.
Now, the reference is filled with 'New' at the creation and overided with a proper
reference number after clicking on 'Save'. Also, the prefix depends now of the
requisition type. BOxxxxx for blanket orders, TExxxxx for call for tenders.
2018-02-01 15:11:14 +01:00
William Henrotin d8d925d366 [REF] purchase_requisition: vendor mandatory in blanket order
The vendor is now a mandatory field in the blanket order form
because it's directly linked to purchase orders. So Odoo needs
to know to which supplier the PO is addressed.
2018-02-01 15:11:14 +01:00
dip-odoo cad52c81e3 [IMP] purchase: add purchase representative in POs
Instead of just using create_uid as responsible, use a plain user_id
field for the PO and PO agreement responsible. This field is named
purchase representative but works like SO responsible and is now
tracked.

Field is added to various views and filters to ease the daily job
of purchase representative people.

Closes #17788 .
2017-10-18 13:20:26 +02:00
amoyaux c914df5a36 [IMP] stock,mrp,purchase: split _run method and move it to rules
Previously mrp, stock and purchase used _run methon on procurement
group and start with a if checking for the action type. This commit
instead launch a specific method depending the rule's action's type

Also _run method and their submethod used in procurement group
was always called with a rule. Thus we choose to move this method
on the rule object himself.
2017-09-08 17:08:06 +02:00
Fabien Pinckaers 0e4f3bb959 [IMP] stock: remove procurement orders to fufill immediately
This removes the procurement.order model. To fufill their needs SO, PO, MO and
stock moves now call the _run method of the relevant procurement.group.

This mecanism is now only used for stockable product, tasks now uses their own
independent mecanism.

The _run method will check all the applicable rules and create directly the
needed model to fufill the need.

The modules stock, purchase, mrp, extends the _run method to implement their
specific strategy relevant for the rule type they define.

If an exception happens the message will be logged as a mail messsage on the
source model, for example, if a sales order cannot be fufilled the salesperson
will now see directly the reason.

OLD commit messages:
[WIP] procurement: removing procurement.order in stock, sale, purchase, sale_stock. WIP
fixup! [WIP] procurement: removing procurement.order in stock, sale, purchase, sale_stock. WIP
[IMP] Basic tests
[FIX] test not necessary anymore
[FIX] remove unnecessary print statement
[FIX] unnecessary test + why passing warehouse worked before?
[IMP] purchase: one move by purchase order line
[FIX] purchase: correct inventory tests and pass move_dest_ids among procurements
[FIX] because of bad cherry-pick merge
[IMP] make mrp pass by adding move_dest_ids there too
[IMP] tests of sale_mrp, no need for cancelpropagation then
[IMP] better to consistently use recordsets also for one2many
[FIX] purchase_requisition
[FIX] Exceptions should trigger errors, which should be caught in the tests
[FIX] sale_mrp: remove usage of procurement.order and use sale order name instead of sol
[FIX] stock_dropshipping: add sale_line_id on purchase_line_id
[FIX] Remove pdb
[IMP] add stock_dropshipping files
[IMP] stock: search carrier through sale line instead of procurement group
[IMP] add procrule test and preision needed when updating sol
[FIX] sale_order_dates + [IMP] procurement exceptions by scheduler
[FIX] No need to return task
[IMP] move file as name changes and add corrections
[FIX] Continue Run Schedulers wizard fix
[FIX] name issues of takss
[FIX] updating sale order line, but there is still a problem with the recompute
2017-09-08 17:08:05 +02:00
Christophe Simonis dd43071638 [MERGE] forward port branch saas-16 up to 278e478d55 2017-06-27 14:19:31 +02:00
Christophe Simonis 34b432d528 [MERGE] forward port branch saas-15 up to 4d79a1ff58 2017-06-26 19:19:39 +02:00
Christophe Simonis e1c74e374c [MERGE] forward port branch saas-14 up to 3bac72ba74 2017-06-26 14:04:04 +02:00
Christophe Simonis 3bac72ba74 [MERGE] forward port branch 10.0 up to aaadb232b2 2017-06-26 13:00:18 +02:00
Christophe Simonis 6981320d01 [MERGE] forward port branch saas-11 up to 79dfcde359 2017-06-21 18:28:26 +02:00
Olivier Dony 5d2869cbc8 [MERGE] Forward-port saas-16 up to ba15df47cb 2017-06-01 01:46:13 +02:00
Olivier Dony ba15df47cb [MERGE] Forward-port saas-15 up to 17b847c0f6 2017-06-01 01:10:29 +02:00
Olivier Dony 5dd2cc8e63 [MERGE] Forward-port saas-14 up to b9e2207267 2017-06-01 00:37:30 +02:00
Olivier Dony b9e2207267 [MERGE] Forward-port 10.0 up to 7e44444878 2017-06-01 00:15:27 +02:00
Thomas Binsfeld 2742722d36 [IMP] purchase_requisition: prepare method for order lines creation
Closes #16080

Add a prepare method easy to override in Purchase Requisition Line to create the dictionary of values for order line creation
2017-05-30 11:40:43 +02:00
Thibault Delavallée 0849677548 [FIX] purchase_requisition: fix taxes_id field being created with records instead of ids
Fixes #16222
2017-05-29 16:32:45 +02:00
Xavier Morel b897dcde15 [FIX] P3: import pattern which doesn't seem to work right
``import odoo.addons.foo as bar`` doesn't seem to properly trigger the
import hook in Python 3 (it blows up on decimal_precision and
base). Thus convert *all* examples of that pattern to the more
sensible ``from odoo.addons import foo as bar``.
2017-05-22 13:30:50 +02:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
2017-04-28 09:06:53 +02:00
Dhaval Panchal 5c837dec2a [REF] stock, etc: rename picking type by operation type
As picking types aren't always used in a picking context, and picking
aren't really meanigful for a lot of people, we rename this concept as
"operation type" in views and in the planner.
2017-02-17 13:21:58 +01:00
Jérome Maes 13f84b9aca [REM] *: remove ir.needaction mixin
ir.needaction_mixin is not used anymore by the webclient.
From 9.0, the concept has changed: this feature is now
available in mail module, with the mail.thread mixin,
and message_neeadction field.

Remove all code handeling needaction bullet and
counter on ir.ui.menu, knowing that since 9.0
webclient does not display the counter anymore.

This code was, thus, useless and some RPC calls
were done for nothing, and adapt accounting
reconcialiation widget.
2016-12-05 11:30:03 +01:00
Denis Ledoux cf98d58f88 [FIX] *: fix product.uom._compute_price method calls
During the conversion to the new api,
the method `product.uom`.`_compute_price` has had its signature
changed.

Formerly, it was:
`def _compute_price(self, cr, uid, from_uom_id, price, to_uom_id=False):`
Now, it is:
`def _compute_price(self, price, to_unit):`

Basically:
- the first argument `from_uom_id` is removed, and you now should
call this method from the model record directly
- the last argument is no longer a kwargs

Some calls to this method were still done the former way:
 - Some have been added during forward ports
 - Some are oversights when this method has been converted to the new api

This revision corrects the calls that were still done the former way
to the new way.

opw-694871
2016-11-24 11:33:38 +01:00
Christophe Simonis 6466aa499f [MERGE] forward port branch saas-12 up to 00f4547 2016-10-19 18:09:53 +02:00
Christophe Simonis 00f45470da [MERGE] forward port branch saas-11 up to 8411b89 2016-10-19 17:56:52 +02:00
Christophe Simonis 235ed4b2c1 [MERGE] forward port branch saas-12 up to 9ad5f26 2016-08-20 18:08:19 +02:00
Thibault Delavallée 838a6f2000 [FIX] varioius: fix digits_compute attribute changed to digits in new API 2016-08-09 11:00:10 +02:00
Thibault Delavallée 0f0ca1c133 [REF] product_uom, *: clean quantity computation methods
product_uom._compute_quantity is an ensure one multi method taking a browse
record as second paramter. It replaces _compute_qty and _compute_qty_obj
to have a single and standard computation method.
2016-08-01 15:05:32 +02:00
Thibault Delavallée f3d6a54e36 [REF] product_uom, *: clean price computation method
product_uom._compute_price() is now an ensure_one multi methods, taking
a browse record as second unit. This helps simplifying and unifying the
various calls and price computation methods.
2016-08-01 15:05:32 +02:00
Christophe Simonis 93e6316029 [MERGE] forward port of branch saas-11 up to 7153077 2016-06-28 18:05:25 +02:00
mdi-odoo 03c269d9b1 [MIG] purchase_requisition: Migrated to new API. 2016-06-08 11:53:58 +02:00
mdi-odoo 7840a0c25c [MOV] purchase_requisition: Re-organized directory structure. 2016-06-08 09:16:07 +02:00