Commit Graph
162 Commits
Author SHA1 Message Date
jem-odoo 075cafa828 [IMP] purchase: move settings for purchase requisition
purchase_requisition install stock, but when doing services you might
still want the option. This option was only display when stock
is installed. This commit changes this to make it visible when
purchase is installed.
The option is better visible and installing a new apps, then
hidden (or difficult to find).
2018-05-30 16:17:38 +02:00
Christophe Simonis f36e6917bd [MERGE] forward port branch saas-11.3 up to 37eed7c509 2018-05-29 17:34:43 +02:00
jem-odoo 0a5b1cef36 [IMP] purchase,purchase_stock: received qty edition
When stock is not install and using purchase alone, user
should be able to edit received quantity manually for
consummable (and services) products.
This is a direct consequence to the split of purchase
and stock module.
2018-05-23 10:13:49 +02:00
jem-odoo e38ed7c780 [MOV] purchase_stock: move code from purchase
We want to break the dependency between stock and purchase
for our furtur developpement. For more modularity, a new
bridge module 'purchase_stock' is created.
This commti move part of business code, views, data, ...
related to stock management from purchase into purchase_stock
without changing any feature.

Task #47927
2018-05-23 10:13:49 +02:00
jem-odoo 8d4609a1db [MOV] purchase: move file in purchase_stock 2018-05-23 10:13:48 +02:00
Rishabh Jadia 799b10eca5 [IMP] pos,purchase,sale,stock,website_sale: show variant
We recently hid the Variants menu items in debug mode. We want to revert
this because the users need to see that menu for business operations.

  eg : Check the inventory per variant

This partially reverts commit 62900064c0

Related to task #1839980
Closes #24553
2018-05-18 13:29:50 +02:00
Nirali Sapra 2d8607bea7 [IMP] purchase : remove stat button with link to PO on the reordering rules
This commit is related to task ID 59417
2018-05-17 15:02:05 +02:00
Christophe Simonis bca769a1e8 [MERGE] forward port branch saas-11.2 up to e70e5b6cf3 2018-05-14 17:31:53 +02:00
stefanorigano 9d0e0e9787 [FIX] *_portal: nav in title
Adapt modules' portal navbars according to ba38d22
2018-05-11 09:56:11 +02:00
Christophe Simonis 5a751fa200 [MERGE] forward port branch saas-11.2 up to aae54ecc15 2018-05-09 15:45:20 +02:00
Olivier Dony c10b0b5f9e [IMP] purchase: show billing status on portal page
It's useful to display that a PO is waiting for a supplier bill on the
portal, so the supplier is reminded about that.
2018-05-03 18:34:53 +02:00
jem-odoo 2ebf703420 [MOV] purchase: split code in right file to fit guidelines
No code changes, simply move them to the right places,
the place where they should be.
This will ease the split between stock and purchase
addons.
2018-04-30 17:19:38 +02:00
Yannick Tivisse 99f497b390 [IMP] *: Define groups on res.users models
The reified view on the res users will be dropped in the following commit.

The previous commit adds support to define each group as a computed field on the res users.

This commit defines:
- A boolean field for each 'isolated' res.group, i.e. a group in the hidden category.
- A selection field for each 'Application' res.group, i.e. a group in a application category.

Example:
- The group to manage pricelist in sales becomes a boolean field
- The groups project user/manager become a selection field
2018-04-26 15:13:38 +02:00
Fabien Pinckaersand 051dfea35e [IMP] account: new way of auto-completion of vendor bills/credit notes
This adds the possibilty to select another account.invoice object in a vendor bill or credit note, to automatically copy its lines.

When the purchase app is installed, the same field can be used for auto-completion and users can choose between vendor bills or purchase orders (preferably PO)

Co-authored-by: dat@openerp.com
2018-04-25 17:12:15 +02:00
Prakash Prajapati 4dfea20569 [IMP] purchase: rename labels
TASK-38741
2018-04-09 11:23:59 +02:00
Christophe Simonis 0f57bdba72 [MERGE] forward port branch saas-11.2 up to 42659dc70c 2018-03-09 16:25:58 +01:00
Martin Trigaux d8e2f6a89d [IMP] purchase: do not make the field required
The value is made by the computed field.
Setting one has no effect (no inverse method).

If you have no value on a purchase order, you end up in the confusing situation
where you can not save a new PO without setting a value to date_planned but,
after saving, the value is reset (no lines).

Do not block the creation of a new purchase order without lines

Fixes #23275
2018-03-09 11:22:57 +01:00
Christophe Simonis 36945a5853 [MERGE] forward port branch 11.0 up to c2e878e34c 2018-03-01 19:43:25 +01:00
Arnold Moyaux 2c5022b4f3 [FIX] purchase: orderpoint should redirect to linked PO
Since procurement order removal. We lost the behavior
to access PO directly from the orderpoint.
In 10.0 the puchase button redirect to the procurement order
and the purchases were accessible from the procurement order.

We do not have the procurement order anymore thus the button
return to a list view with all RFQ and PO.

Fixes #23096
2018-02-28 15:36:27 +01:00
XavierDo 6a378e3839 [IMP] product: move uom in a new addon
Moves UoM models, test and data to a new addon in
order to be able to use uom without product.
A simple example is be to be able to use UoM for
timesheets.

This commit only move code, and adapt xml ids
without chaging any feature or functionnal
behavior.
Note: 'product' module now depends on new
'uom' module.
2018-02-26 14:27:26 +01:00
Christophe Simonis e5987434c6 [MERGE] forward port branch saas-15 up to 9cfd4a5c07 2018-02-22 19:06:31 +01:00
Christophe Simonis 9cfd4a5c07 [MERGE] forward port branch saas-14 up to caea203ba6 2018-02-22 18:59:43 +01:00
Christophe Simonis caea203ba6 [MERGE] forward port branch 10.0 up to f492c73080 2018-02-22 18:57:02 +01:00
Goffin Simon 5cdefcc39a [FIX] purchase: Adding PO on refund vendor bill
The function  _prepare_invoice_line_from_po_line has not been
designed to compute in a right the quantity for a  line in an
in_refund invoice. So it has no sens to display the field purchase_id
for a refund vendor bill.

Closes #23095

opw:816717
2018-02-22 11:21:13 +01:00
Jaykishan Solanki 62900064c0 [IMP] sale,purchase,...: Hide Variants menuitems in debug mode
Purpose
=======

Avoid confusion between product template and product variant. People don't understand that editing some stuff on the product variants may impact the other variants

Specification
=============

Hide the menu Product Variants/Product Template in the debug mode

List of product menuitems
-------------------------

sales > catalog > products  (product.template)
sales > catalog > product variants  (product.product) => Add in technical
website > catalog > products (product.template)
website > catalog > product variants (product.product) => Add in technical
point of sale > catalog > products (product.template)
point of sale > catalog > product variants (product.product) => Add in technical group
purchases > purchase >products (product.template)
purchases > purchase >product variants (product.product) => Add technical group
inventory > inventory control > products (product.template)
inventory > inventory control > product variants  (product.product) --> Add technical group
manufacturing > master data > products (product.template) => Add technical group
accounting > configuration  > products (product.product)
PLM > master data > products (product.template)
lunch > configuration > products (lunch.product)
2018-02-12 13:20:01 +01:00
Priyanka Kakadiya ccf6386acf [IMP] account: Remove 'Tax Scope' on list and search views
Purpose
=======

- Remove tax scope in the list view of the taxes coming from the search more of the invoice line

- Hide the Filters option (While venders bills search view showing only tax scope purchase and sales bills search view showing only tax scope sales so no need purchase and sales option of the filter, also hide active and inactive filters.)
2018-02-05 11:03:24 +01:00
Arnold Moyaux cf99ccf84d [IMP] purchase: decrease qty log an activity on receipt picking
When the user decrease the quantity log an activity on directly linked
pickings in order to help the user to react on its receipt.
2018-02-01 15:26:59 +01:00
Joren Van Onder 079a13a349 [IMP] analytic: in-depth refactoring
* analytic accounts can be shared among companies
* amount on analytic lines always refer to amount in company currency of which it belongs to
* add analytic groups (hierarchical way to classify analytic accounts)
* analytic tags:
- only present on analytic lines, not anymore on analytic accounts
- can be used to distribue/split an analytic lines among several analytic accounts
- enabled by a dedicated res.group
- added on several objects (vouchers, expenses, analytic defaults...) as well as in bank statement reconciliation widget (manual counterpart and account.reconcile.model)

* bunch of fixes made related to analytic

Was PR #22124. Was task 32386. Original work by tbe.
2018-01-31 15:53:04 +01:00
Alexandre Kühn a87d761fdb [IMP] core: menu tip ux/ui improvement
We would like to make the "no item found" screens more appealing.

Before this commit, it shows a small help tip in the top-left
corner of the screen, just below the "Create" button.

With this commit, these help tips have been replaced by onboarding
screens, which consist of a picture and some text below, both of which
are horizontally centered.

The texts have been slightly changed, so that they are shorter and clearer.

Considered modules:

(A)
    account,
    account_asset,
    account_budget,
    account_test,
    account_voucher,
    analytic
(B)
    barcodes,
    base,
    base_automation,
    board
(C)
    calendar,
    contacts,
    crm
(D)
    delivery
(E)
    event
(F)
    fleet
(G)
    gamification,
    google_drive
(H)
    hr,
    hr_attendance,
    hr_contract,
    hr_expense,
    hr_gamification,
    hr_holidays,
    hr_payroll,
    hr_recruitment,
    hr_timesheet
(I)
    im_livechat
(L)
    l10n_fr_sale_closing,
    link_tracker,
    lunch
(M)
    mail,
    maintenance,
    mass_mailing,
    membership,
    mrp
(N)
    note
(P)
    payment,
    point_of_sale,
    post_mercury,
    pos_restaurant,
    product,
    project,
    purchase,
    purchase_requisition
(R)
    rating,
    repair,
    resource
(S)
    sale,
    sale_timesheet,
    sales_team,
    stock,
    stock_account,
    stock_landed_costs,
    stock_picking_batch,
    survey
(U)
    utm
(W)
    web,
    website,
    website_blog,
    website_customer,
    website_event_track,
    website_forum,
    website_quote,
    website_sale,
    website_sale_digital,
    website_slides
2018-01-18 21:43:29 +01:00
Christophe Simonis 782154da11 [MERGE] forward port branch saas-11.1 up to f6ef0c7760 2018-01-10 20:35:53 +01:00
Christophe Simonis 228ecdbe28 [MERGE] forward port branch 11.0 up to ff0abd214c 2018-01-10 11:41:35 +01:00
Christophe Simonis 6e25eb9b05 [MERGE] forward port branch saas-16 up to 4c410ee6a1 2018-01-09 17:03:07 +01:00
Christophe Simonis 4c410ee6a1 [MERGE] forward port branch saas-15 up to 38b201abce 2018-01-09 16:30:50 +01:00
Christophe Simonis 38b201abce [MERGE] forward port branch saas-14 up to e671cdcc44 2018-01-09 15:54:16 +01:00
Christophe Simonis e671cdcc44 [MERGE] forward port branch 10.0 up to 849d8ffd21 2018-01-09 15:12:51 +01:00
Thibault Delavallée 1d544087fa [FIX][IMP] purchase: set purchase_warn as non required
When reinitializing modules it is impossible to create partners if
purchase is installed because purchase_warn field has a required
column but no default value if the module does not depend from
purchase. Use case is trying to run test_mail tests with purchase
installed.

As this field is not business critical it is now not required. As there
is a default value behavior should not change for users.

See also 71181a0e39, dd47abdcc3 and 06a02ae4c2.
2018-01-08 09:42:10 +01:00
Goffin Simon deb00a703b [FIX] purchase: Adding a purchase order on a vendor bill
To keep the same behavior as in 11.0, you can only add a purchase order to a vendor
bill when the vendor bill is in draft. Afterwards it is not longer possible.

opw:803068
2018-01-04 14:05:23 +01:00
Kinjal Mehta c90348d482 [IMP] purchase: changed duplicate field label in the same model 2018-01-04 17:56:56 +05:30
Christophe Simonis 362f0489d0 [MERGE] forward port branch 11.0 up to fe22a0f9ca 2018-01-03 12:28:52 +01:00
Arnold Moyaux 7e4b863fb3 [FIX] purchase_requisition: call for tender
When using requisition with a mto product the link
between moves coming from supplier and move going to
customer are not created.

It happens because creating a purchase order from a
requisition set automaticaaly a default requisition id
that trigger an onchange. However the onchange modify the
move dest ids but those are not present in the purchase order
view and thus not send to the server during the create call.

This commit includes the move dest ids as invisible in the view.
2017-12-18 11:46:32 +01:00
Christophe Simonis 4708812b6c [MERGE] forward port branch 11.0 up to b37cc1f9b7 2017-12-12 18:50:59 +01:00
Miquel Raïch a578531ca3 [FIX] v11 urls
Was still pointing to old links

Closes #21590
2017-12-12 17:19:01 +01:00
Simon Lejeune b610e2a812 [FIX] purchase: po line and force_save
Two fiels are set readonly according to the status of the purchase
order: product_id and product_uom_id. They become readonly once the
purchase order is confirmed, but according to the options a user is
still able to add purchase order line. Make sure to always send the
required fields to the server.

Fixes #21519
2017-12-12 10:52:54 +01:00
Kinjal Mehta 6f3608e945 [IMP] purchase: Display PO lines from 'Purchase' button on product form
Purpose
=======

From product stat button (purchase) on click of purchase lines open Purchase line's form view, the view is not correct and it is not intended.

Specification
=============

Stat button of purchase orders in product form view, on click of line do not open form view of purchase order line only list view...not form view (restrict to open form view).
2017-11-17 10:11:18 +01:00
Christophe Simonis c703a2a0c3 [MERGE] forward port branch 11.0 up to d279a3e6d5 2017-11-16 17:55:37 +01:00
Nicolas Lempereur 6e4d2e36aa [FIX] base_setup,etcie: translate left setting menu
In left menu used for switching between "apps" particular menu, the
apps names were not translated.

This commit use the "string" attribute which is translated instead of
"data-string" fallbacking on data-string (so things still work without
updating the module).

opw-781728
closes #20972
2017-11-16 07:51:17 +01:00
qdp-odoo 1d515fcdac [IMP] account, usability: little big details
* Fiscal positions: add stat button for 'Active' (instead of checkbox )
* Customer Invoice line form view no need for purchase order remove(or hide in customer invoice) and put Anallytic tag field in form view
* Currencies sorted based on active field (so we can see all active currency first)
* Improve graph for bank and cash journals on dashboard: based on ending balance and statement lines.

Was PR #14833. Was task 29541
2017-11-10 09:56:59 +01:00
Pierre Masereel 2d3e6d7383 [IMP] purchase: edit received quantity on purchase_line when type service
When we purchase products of type services,the received quantity is
always set to the ordered quantity.

We want to be able to manually enter a received quantity on service
products to have a better trace of what have been received or not.

We show the picking stat button olnly if there are picking

We show the columns qty_received, qty_invoiced and invoice_status
depending on the parent state, and not depending on the context passed
in the menu item.
2017-11-08 15:28:07 +01:00
Hiral Bhavsar 6ba6ff8e8c [IMP] products,...: Few improvements in product form view,
Purpose
=======

Invoicing is now optional with ecommerce and POS -> there shouldn't
be an Invoicing tab in product form by default

Specification
=============

- Move 'Customer Taxes' field from 'Invoicing' tab to right
  below 'Sales Price' (in General Information tab).

- Move 'Invoicing' section from 'Invoicing' tab to 'Sales' tab.

- Add section 'Inventory Valuation' in 'Inventory' tab and move
  'Cost' field from 'General Information' tab to this section.
  Also move 'Landed Costs' section from 'Invoicing' tab to this
  section (without heading 'Landed Costs').

- Rename tab 'Invoicing' to 'Accounting' and apply group
  'group_account_invoice'.

- Remove 'Notes' tab and move descriptions and warnings to
  relative tabs(Sale, Purchase, Inventory).

- Apply groups 'stock.group_stock_multi_locations' to 'Description
  for Internal Transfers' in 'Inventory' tab.

- Improve tooltip of 'Description for Customers', 'Description
  for Receptions' and 'Description for Internal Transfers'.

- Visible/Invisible 'Sales' and 'Purchase' stat buttons based on
  'Can be Sold' and 'Can be Purchased' checkbox fields.

- Update 'main_flow_tour', set trigger 'Sales' instead of 'Invoicing'
  as now fields 'service_policy' and 'service_tracking' will be placed in 'Sales' tab.

- Move 'TaxCloud Category' field from 'Invoicing' tab to 'General Information' tab.

- Rename ebay option 'Use eBay' to 'Sell on eBay' and move 'ebay' tab next to 'Sales' tab.

- In 'Sales' tab, set 'Subscription Product' field before description and add
  string 'Subscription' to differentiate it.

Full details and discussion under : https://www.odoo.com/web#id=33939&view_type=form&model=project.task&action=333&active_id=131&menu_id=4720
2017-10-19 15:52:18 +02:00
Mitali Patel 8f88c0336f [IMP] base: Make 'name' attribute required for 'filter' tag
Purpose
=======

The attribute name isn't required on the <filter> tag. If not set, it can't be selected with a xpath and it can't be overwritten.

A lot of PR are coming from the community just to add a name on a filter because:
- It can't be selected with a xpath.
- It can't be used with `default_search_foo` on an action context.

Specification
=============

Make the atttribute name required
2017-10-19 10:59:26 +02:00