Commit Graph
27 Commits
Author SHA1 Message Date
Jérémy Hennecart 9389f7ce2e [IMP] *: enable sample data in several views
This commit sets attribute sample="1" in a bunch of list and
kanban views, to enable the new sample data feature when views are
empty.

Task 2232801

X-original-commit: 5471309b35619f307242c2704c7681ba63d2be42
2020-06-22 13:04:02 +00:00
william 9a8fd8ba36 [IMP] account: improve usability of taxes for goods/services
Help search taxes more easily by adding an applicability field stating
that the tax should be used only on goods or on services. If not set,
can be used anywhere.
2020-06-15 14:09:17 +00:00
Laurent Smet 7076b4f4d0 [REF] account: Split big files account.py & account_view.xml
closes odoo/odoo#49422

Related: odoo/upgrade#1068
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-04-14 06:54:14 +00:00
Xavier Morel 01354a3314 [FIX] account, purchase: almost certainly incorrect domains
This started from noticing that purchase somewhat oddly *removes* a
filter (internal_type='other') from a domain which is fairly
rare. Looking at the file histories didn't yield anything of
interest ("v9 accounting") but finally looking at the model revealed
an additional multi-company filter missing from both views.

After consulting with @qdp-odoo, @sle-odoo and @lap-odoo, no good
reason was found for the discrepancies:

* internal_type filter should probably always be there, unclear why it
  would get removed from purchase
* whoever added the multicompany filter *probably* missed that it
  would never be used because there was not one but two views
  overriding it (differently)
* sibling "income" field, as well as the corresponding fields on the
  product category, should match (though they were less incoherent).

closes odoo/odoo#44602

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-02-04 14:44:59 +00:00
wan d8c5cc1335 [IMP] account: add a readonly group
Task 2092079
Accounting firms that want to give access to their customers avoiding
mistakes and risks will love this profile that can't do anything
wrong... Maybe as well as companies auditors..?

closes odoo/odoo#39860

Related: odoo/enterprise#6576
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-01-22 11:23:16 +00:00
Victor Feyens 4e9416b4d5 [FIX] account: product view
Minor revert of https://github.com/odoo/odoo/pull/35381

closes odoo/odoo#36203

Signed-off-by: vfe <Feyensv@users.noreply.github.com>
2019-08-28 15:50:22 +00:00
Florian Gilbert 9bc4a19d74 [IMP] accounting : Usability back2basics.
task #2041848

closes odoo/odoo#35381

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-08-21 19:07:26 +00:00
Victor Feyens 3bfde1891f [FIX] account,product: product UI
closes odoo/odoo#35756

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-08-16 10:12:42 +00:00
Kirti Choudhary c1f7987f49 [IMP] various: improve product form usability 2018-08-08 14:51:11 +02: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
Yannick Tivisse 8cc216b659 [IMP] account: Split clearly the accounting & invoicing applications
PURPOSE
=======

1) Have a clear split between the invoicing and the accounting apps
2) Have a clear split between the community and the enterprise version (no accounting in community)

SPECIFICATION
=============

(1) When only invoicing installed, we shouldn't see accounts (for community and enterprise)
(a) Perpetual Inventory Valuation:
     - Hide the field inventory valuation from the product category
(b) Taxes
- No accounts
- No cash basis option
- No tax adjustment

(2) Remove from Community, modules:
- Accounting
- Budgets
- Assets

(3) No account_report in community, keep PDF reports for
- sale/purchase journal
- Aged partner balance
- Partner Ledger

(4) Clean split between invoicing and accounting in enterprise
(a) When installing invoicing, I shouldn't have access to accounting just by changing my access right to adviser
(b) Menus (when only invoicing installed)
- Sales
    - Customer Invoices
    - Customer Credit Notes
    - Payments
    - Customer Statements
    - Customers
    - Sellable Products
- Purchases
    - Vendor Bills
    - Vendor Credit Notes
    - Payments
    - Vendors
    - Purchasable Products
- Reporting
    - Partner Reports
        - Partner Ledger
        - Aged Receivable
        - Aged Payable
    - Audit Reports
        - Tax report
    - Management
        - Invoices
        - Product Margins
- Configuration
    - Settings
    - Products
        - Products
    - Accounting
        - Taxes
        - Fiscal Positions
        - Bank Accounts
        - Journals
    - Management
        - Payment Terms
        - Follow-up levels
    - Payments
        - Payment Acquirers
(c) Settings (when only invoicing installed)
- Fiscal Localization
- Taxes
    - Default Taxes
    - Rounding Method
    - TaxCloud connection
    - TaxCloud Categories
    - EU Digital Goods VAT
    - VIES VAT CHECK
- Currencies
    - Main currency
    - Multi-currencies
- Invoicing
    - Warnings
    - Docsaway
- Customer Payments
    - Follow-up levels
    - Payment Followup
- Bills Payment
- Bank & Cash
- Analytics
    - Margin
- Automated Entries

Remarks
- Test with the different access rights
2017-08-11 13:57:30 +02:00
Jigar Patel 65e810269a [IMP] website_sale, product: Improve product availability in ecommerc… (#14037)
* [IMP] product: Clean product form view

* [IMP] website_sale: Remove old availability functionality

* [IMP] website_sale: Fix to get attributes details

* [IMP] website_sale_stock: Add inventory availability
- Warning messages:
  - Don't show anything
  - Show inventory
  - Only show below a Threshold
  - Show a custom message
- Add Default Inventory availability option in website admin under product catalog setting
- Show inventory availability message based on variant
- Block add to cart if product not available in stock (Block if Show inventory or Only show below a Threshold option is selected)

* [IMP] website_sale_options: Prevent user to buy optional product if stock is not available

* [FIX] product,website_sale_stock: details

- Corrects the display of the image on the product form when selecting a pre-existing image.
It was displaying a template and not the pre-existing one.

[FIX] website_sale_stock: sale_order

Condition was set on linked_line_id which is pointless as we iterate on each line of the order.

[FIX] website_sale_stock: fix import

Change import to proper form: from . import

* [ADD] website_sale_stock: default threshold

- Add available_threshold in website_config_setting view.
- Fix availability and threshold values to be directly
  linked to product template instead of website config settings.
- Change custom_message to non-required.

* [ADD] Website_sale: Install checkbox for wbs_stock

-Add checkbox to install website sale stock as 'Inventory' in Website Settings
-Change 'Inventory Availability' to 'Inventory'
-Add help and tooltip for 'Inventory'

* [IMP] website_sale_stock: website product view

- Add Unit of measure in the stock information on the product page.
- rework get_attribute_value_ids method.

* [IMP] website_sale: Stock and Options

- bridge module to allow stock and options to interract together
- changes on the field names (follow pad), modifications.

* [FIX] product: revert on product_views and cleaning

Revert changes suggested on the task as it it scheduled on another one for a big clean-up.
Clean comments on code.

* [IMP] website_sale_stock: website product view

+[FIX] sale_stock: dependency
- changed strings and views for website and backend product view.

- change dependency of 'sale_management' to 'sale' in 'sale_stock'.
We don't actually need the sale menu when managing our stock. Sale if sufficient thix way.

* [FIX] website_sale_stock: triggers on js and ajax

The function inserting the avalability template in the web page was triggered by too much events,
this was triggering a problem with the deferred calls. This was raising an error in the website_sale_tour_buy test.

Now only change on data-attribute_value_ids will trigger the function. The test should run smoothly.

[FIX] website_sale, website_sale_stock: route tour_buy

- The improvements on the branch prevent a user to buy a product when there is no stock.
Adapted the route test to the new behaviour in order to add_cart/buy/pay a product.
--> now buying iPod (16Gb) instead of iPod (32 Gb)

- ajax.loadXML was called to often (each trigger of the function) and was making the runbot crash.
Only one call of the loadXML right now.
2017-08-04 14:57:25 +02:00
Christophe Simonis 4f501348c4 [MERGE] forward port branch saas-16 up to 46e1104ce1 2017-07-26 19:55:44 +02:00
Adrien Dieudonne a47d2d88d0 [FIX] *: wrong color_field attribute for m2m_tags
This fix previous commit a29f7f671b.

(1) Some objects have no color field.
(2) There was an issue when two many2many tags were instantiated:
    If the first one had the 'color_field' attribute the second one
    had it too even if this attribute weren't specified.
    Now, it's fixed in data_manager
2017-07-24 09:32:49 +02:00
Richard Mathot 4ccd54ccc1 [FIX] account: typo introduced by fwport bf51fe55a1 2017-07-07 15:04:00 +02:00
Christophe Simonis bf51fe55a1 [MERGE] forward port branch saas-16 up to 0f2b2c4e2b 2017-07-07 14:30:30 +02:00
Martin Geubelle a29f7f671b [FIX] *: explicit color_field attribute for m2m_tags
Since the previous commit, the `color_field` needs to be explicitly stated
in the options for the tags to be colored.

The previous behaviour (always read the field `color`) was leading to server
warnings if the field was not present on the comodel.

Thìs commit set the `color_field´ for every many2many_tags on fields that have
a `color` field on the comodel.
2017-07-07 13:40:50 +02:00
Yannick Tivisse 783746f579 [IMP] account,sale,...: Hide invoicing stuff until sale_management or account_invoicing is installed 2017-06-02 15:53:09 +02:00
Akash Bhavsar 10eee18a04 [IMP] product,sale,...: Restructure Product Form
Purpose
=======

- product form is a bit disorganized with fields showing up at wrong place:
- inventory tab for services -> to remove
- subscription & events fields under Invoicing tab
- inventory tab is not structured
- invoicing and bill control fields are not grouped together
- etc.
2017-05-09 15:04:35 +02:00
Yannick Tivisse 8c08a9be10 [IMP] sale,account: Various UX improvements and cleanings for onboarding purpose
SPECIFICATION:
==============

- hide income account in invoicing wizard (if user is not a accounting accountant at least)
- hide Inventory tab in products form if no access to Inventory app
- in internal category form, hide accounts if user is not an accounting accountant
- hide Vendors if no access to purchase (as well as Description for Vendors in Notes)
- remove Warranty or hide it with related access rights
- tax cloud config is not userfriendly (product form, what is TIC category? what does it imply?)
- rename Accounting tab (in products) into "Invoicing" and move Invoicing Policy and Taxcloud Config there. Make tax field visible for sales
- reset Internal notes field on product (under Notes). Used by many companies and useful for search on website.
- invoice: validate button should be for billing users only
- a sales user can't see Configuration menu (with salesteams)
- a sales user should not see Invoicing report link &nd settings link in salesteam dashboard
- a sales user should not see the field for invoicing target in dashboard (in invoicing if activated for salesteam)
- In sales team, quotations and invoices should be only one option -> that way invoicing fields & targets show up to the admin
- SO status: sale order -> Sales Order
- Everywhere: Payment Term -> Payment Terms
2016-08-30 13:20:23 +02:00
Yannick Tivisse d6e1d41128 [MIG] account: Migrate remaining old API chuncks of code 2016-08-08 12:24:40 +02:00
Yannick Tivisse 8db497185d [IMP] stock_account: Hide 'Account Stock Properties' if 'Perpetual' valuation
Because if you set the inventory valuation as manual you don't create
accounting entries automatically when stock moves are confirmed.
2016-04-04 09:59:24 +02:00
qsm-odoo 9e8e1b3de7 [REF] *: product categories templates
* = (product,purchase,stock,account,stock_account)
2015-09-17 17:32:02 +02:00
Prashent Panchal af9d21b379 [REF] product: update and form cleaning
Among a lot of views tweakings and cleaning, some changes are listed here.

product
- add currency_id, taken from the company

stock
- procurement request and inveotry adjustement wizards now correctly work
  on product and templates with 1 or more variants. With one product the product
  field is readonly, with a template and/or a product with variants the
  product field is limited to the existing varians.
- valuation and cost method fields on the templates now come from property
  fields defined on the template, or from property fields defined on the
  product category. It allows to define those fields directly from the
  category.Among a lot of views tweakings and cleaning, some changes are listed here.

membership
-  details not visible in the default product view. However there is a specific view
to use in (membership / configuration / create member product)
2015-08-25 11:06:29 +02:00
Raphael Collet cd925255b7 [FIX] addons: view extensions are no longer based on attribute string
In view inheritance, selecting an element based on the attribute `string` is
broken, since this attribute may be translated before the inheritance is
applied.  This fixes existing views to avoid such selections.
2015-07-06 16:58:04 +02:00
Mahendra barad 75d7bbb46e [REF]Account: Refactoring the account, Change some fields name according to new api guidelines
code improvement

code improvement

payment_method to payment_method_id

writeoff_account to writeoff_account_id

property_account_receivable to property_account_receivable_id

property_account_payable to property_account_payable_id

property_account_expense_categ to property_account_expense_categ_id

property_account_income_categ to property_account_income_categ_id

property_account_expense to property_account_expense_id

property_account_income to property_account_income_id

property_account_expense_categ fix

sale_tax to sale_tax_id and default_sale_tax to default_sale_tax_id

purchase_tax to purchase_tax_id and default_purchase_tax to default_purchase_tax_id

ref_companies to ref_companies_ids

property_account_position to property_account_position_id

property_payment_term to property_payment_term_id

property_supplier_payment_term to property_supplier_payment_term_id

bank_accounts_id to bank_accounts_ids

payment_method fix after rebase

user_type after rebase

payment_method fix after rebase

after rebase

invoice to invoice_id

fix payment_method_id after rebase

code improvement

[IMP]user_type to user_type_id

[IMP]property_stock_account_input_categ, property_stock_account_output_categ to _id

[IMP]improve after rebase

[IMP]fix type

[IMP]Account: code improvement
2015-06-23 14:00:43 +02:00
qdp-odoo c04065abd8 [IMP] accounting v9. Yeeeeaah 2015-05-05 17:28:04 +02:00