Commit Graph

126 Commits

Author SHA1 Message Date
Goffin Simon cd9a77604f [IMP] account: domain on tax_dest_id
It has no sens to map a tax by a tax included in the price because
when a tax is included in the price, the price must be computed
according to this tax.
2015-08-26 09:02:40 +02:00
Denis Ledoux 73432ffe9f [FIX] *: accesses of views concernings specific groups
If the whole view relates to a specific group,
apply the group on the view itself instead of
each view part (each fields, each page, each div,...),
so the view is loaded / added to the base view
only if the user is in the right group.
So the view is not loaded uselessly
and the fields are not read for nothing
(performances & security).

Indeed, when a group is applied on a field itself, the field content
is read, but hidden, therefore reading the content of the field
uselessly, and potentially leading to accesses issues
if the user hasn't the rights to read the field.
(e.g. reading a property when not having access to the model
of the proprty, pricelists on partners for instance)

opw-634402
2015-05-12 11:33:43 +02:00
Goffin Simon 3eda25119f [FIX] account: Invoiced doesn't take into account cancelled invoices
"Invoiced" stat button on the res.partner form view must not include cancelled and draft invoices.
The button triggered an action which shows a tree view with invoices where:
type in ['out_invoice'] and all states.
Now the button triggers a tree view with invoices where: type in ['out_invoice' , 'out_refund']
and state not in ['draft', 'cancel'].

opw:472318
2015-03-26 16:27:27 +01:00
Denis Ledoux 4928db70ad [FIX] account: partner form buttons access rights
When having account installed, but having as only
access right "Contacts creation", it wasn't possible to
display the partner form.

Setting the "groups" on the button itself has as effect
to hide the button, but not to prevent its value computation.
If you did not had the access rights required to compute the
buttons values, it leaded to security issues.

Put the "groups" on the view instead prevent the button to be loaded,
and its value to be computed. It therefore avoids both
a useless computation (computing the value of a hidden button
is not really useful), and prevent any access rights warnings.

Besides, 3 different groups were needed to display the
three buttons:
 - account.group_account_invoice
 - account.group_account_user
 - analytic.group_analytic_accounting

Not having one of these tree groups could lead to security
warnings. We therefore split this view into three sub-views,
with each one a group set (and a button)

opw-628668
2015-02-23 15:39:07 +01:00
Christophe Matthieu c4ae1ef66d [FIX] account.fiscal.position: Fix get_fiscal_position for auto apply:
First match a fiscal position for the given country, then for a country
group containing the country. If none found, search a fiscal position
without country nor country group
2014-10-27 10:24:13 +01:00
Olivier Dony 48140f113a [IMP] account.invoice: add extra @id on `smart button` to make inheritance easier 2014-07-25 14:18:03 +02:00
Antony Lesuisse 22f4c315a3 [IMP] automatic fiscal positions for simple cases
Add group of countries res.country.group
Add get_fiscal_position method a method to compute a fiscal position based on company_id, partner_id, delivery_id
The meaning of res.partner.fiscal_position is now a forced a fiscal position.
The default implementation should handle simple cases, like VAT in UE and sales
tax in the US, but the method can be overriden to handle more complex ficals
rules.
2014-06-30 02:12:41 +02:00
Fabien Meghazi faa09da325 Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
Gery Debongnie 5aa2fa150c [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140502130753-4z24z1to9pkrckvq
2014-05-02 15:07:53 +02:00
Antony Lesuisse 7e25b9ae55 [MERGE] saas-4 report_webkit missing dependency on report
bzr revid: al@openerp.com-20140501152604-4cobh5ui47dt4pem
bzr revid: al@openerp.com-20140501155633-gefnc3zqcsr2rhaz
bzr revid: al@openerp.com-20140501161156-4wbsvhh8gz4r22h3
2014-05-01 18:11:56 +02:00
Denis Ledoux 81aeccb3a0 [FIX] account: invoices button on partner sheet only display the customer invoices, and is visible only if the partner is a customer
bzr revid: dle@openerp.com-20140425095123-xvc51uiqt3g18181
2014-04-25 11:51:23 +02:00
Jaydeep Barot f50acd0bf9 [IMP] merge two group by in search view to install account_followup and invisble accounting tab form partner view when user dont have account rights evnen, when is company true.
bzr revid: jar@tinyerp.com-20140421050534-0z3zefpb3vp8why7
2014-04-21 10:35:34 +05:30
Gery Debongnie a81ba2b1ea [IMP] compute the total invoiced and display it on the stat button for invoices in res_partner form view (addon account)
bzr revid: ged@openerp.com-20140418093756-nxy2rkbyousbsjaf
2014-04-18 11:37:56 +02:00
Gery Debongnie ea23d24e87 [FIX] correct some typos in addon account variable name
bzr revid: ged@openerp.com-20140414093221-qbpxrv2kihsvtafg
2014-04-14 11:32:21 +02:00
Randhir Mayatra rma-openerp 457a62dee6 [IMP] add stat button for point of sale, email template
bzr revid: rma@tinyerp.com-20140327113720-1jlqhlk17muqv5nf
2014-03-27 17:07:20 +05:30
Randhir Mayatra rma-openerp b51066b500 [IMP] convert button into stat button for customer
bzr revid: rma@tinyerp.com-20140320134414-mk1ie8okynrtudsq
2014-03-20 19:14:14 +05:30
Gery Debongnie aac67e8bc5 [IMP] removes the testing field testpercent in res.partner and improves the way the buttons are displayed in form view (addon account)
bzr revid: ged@openerp.com-20140317152828-v2den23s32kzaqxh
2014-03-17 16:28:28 +01:00
Gery Debongnie 6fee78b475 [IMP] improves the way the res_partner fields are displayed in the buttons in form view. Specifically, uses the widget 'statinfo' and some related cleanup (addons account, crm)
bzr revid: ged@openerp.com-20140314140114-9t2piu3cpqkldnbo
2014-03-14 15:01:14 +01:00
Gery Debongnie 3c835279e8 [IMP] removes the field journal_items_stat_button field from the res.partner model (the x2many widget replaces its functionality) and improves the view. Also, adds a new field 'testpercent' to res.partner, only for testing purposes (addon account)
bzr revid: ged@openerp.com-20140313125244-k4zgsil19gk5sjcz
2014-03-13 13:52:44 +01:00
Gery Debongnie b7bc8b3aa4 [IMP] change the partner form view to display new stat button information in addon account/crm
bzr revid: ged@openerp.com-20140312132347-dyu1i3szlh9r7jq9
2014-03-12 14:23:47 +01:00
Thibault Delavallée 24a411d9eb [MERGE] [IMP] Partner View: Partner View Improvement: remove history tab
This branch adds contextual buttons for the various items contained
in the history tab that are removed.

res.partner:
- in crm: re-ordered of the various Leads/Meetings/Opportunities buttons
- in crm_claim: added a Claims button, removed claims in history tab
- in event: removed one2many field towards event.event and event.registration, as well as other data related to history tab
- in marketing_campaigns: removed on2many field toward workitems (workitem_ids)
- in project: removed task from history; added Tasks button
- in project_issue: removed issues from history; added Issues button

bzr revid: tde@openerp.com-20130614121020-zl1l18iz9gv1smaa
2013-06-14 14:10:20 +02:00
Paramjit Singh Sahota 06043f11b9 [MERGE] Merged lp:openobject-addons.
bzr revid: psa@tinyerp.com-20130607052333-uw6pig2zge1cms4i
2013-06-07 10:53:33 +05:30
Paramjit Singh Sahota f563a6f634 [IMP] Changed the sequence of top right buttons in Customer form.
1). Opportunities, Meetings, Calls
2). Order, Invoices, Journal Items
3). Tasks, Issues, Claims

bzr revid: psa@tinyerp.com-20130530055918-bvtgmt4nhujpfbka
2013-05-30 11:29:18 +05:30
Olivier Dony a4a522bc31 [IMP] account: simplify button name - analytic accounts related to a partners are Contracts in a broad sense
bzr revid: odo@openerp.com-20130523164449-y1fzwc2j2u150okh
2013-05-23 18:44:49 +02:00
Olivier Dony 325f710360 [FIX] account: split the actions to open analytic accounts, as context is not compatible
The same action was erroneously used in two incompatible
cases: once for openining the list of analytic accounts
from a partner form view (requires a special context
with a client-side `active_id` variable) and the second
one for the main Analytic Account menu item (which
cannot have `active_id` in the context - it would crash).

The fix includes setting an empty ({}) context explicitly
on the original action to be sure the incorrect context
is removed upon update.


The error was introduced at rev.8685
revid:qdp-launchpad@openerp.com-20130418125951-8p0tfexd9jj8l75b

bzr revid: odo@openerp.com-20130507165113-67lam91046t56ky8
2013-05-07 18:51:13 +02:00
Quentin (OpenERP) 33f27b362b [MERGE] forward port of addons v7 up to revision 9045
bzr revid: qdp-launchpad@openerp.com-20130422153449-c62emljfa4a49758
2013-04-22 17:34:49 +02:00
Josse Colpaert b3ac941896 [MERGE] Merge from trunk
bzr revid: jco@openerp.com-20130408151751-kta4x8swa6wcmsnl
2013-04-08 17:17:51 +02:00
Josse Colpaert 55ddb36921 [FIX] Adjust the groups of the buttons
bzr revid: jco@openerp.com-20130408141620-0p4whpx6p6pig81e
2013-04-08 16:16:20 +02:00
Olivier Dony 438e1c1daf [FIX] res.partner: Hide commercial-related fields on contacts form + autosync them from parent company
Fixes handling of accounting/invoicing-related fields on partners
that are not "commercial entities" (either marked as "is_company"
or parentless).
The corresponding fields are also hidden from form views on these
partners and replaced by a short sentence and a link to edit the
"master fields" on the commercial entity.
This corresponds to part B of the solution described on bug 1160365.

lp bug: https://launchpad.net/bugs/1160365 fixed

bzr revid: odo@openerp.com-20130407235013-j3tv4uxy46eej43i
2013-04-08 01:50:13 +02:00
Vishmita 09101efb37 [IMP]Improve code
bzr revid: vja@tinyerp.com-20130226083344-23pzbl06j994n4wf
2013-02-26 14:03:44 +05:30
Vishmita adf972db58 [IMP]Improve code
bzr revid: vja@tinyerp.com-20130226073332-zhy5k5is3453nrky
2013-02-26 13:03:32 +05:30
Olivier Dony 90baea35c5 [FIX] account: the `state` field of res.partner.bank must be present in all form/tree views
This is the second part of the fix for bug
1068822.
res.partner.bank overrides fields_get() and sometimes adds
extra `states` attributes on the fields. This requires the
presence of the special `state` field in all views.

lp bug: https://launchpad.net/bugs/1068822 fixed

bzr revid: odo@openerp.com-20130225141014-zqbzbldqkl997lfu
2013-02-25 15:10:14 +01:00
Vishmita 0c56cfab83 [IMP]Improve the related actions on the partner
bzr revid: vja@tinyerp.com-20130215131610-urfy8svmr05k4t02
2013-02-15 18:46:10 +05:30
Alexis de Lattre cad4abe56c Merge with addons/trunk revno 8168.
Adapt demo data to the rename of partner XML IDs in server/trunk.

bzr revid: alexis@via.ecp.fr-20121129222645-lm5ujxf4a1a83aoz
2012-11-29 23:26:45 +01:00
Fabien Pinckaers b5013ea195 [MERGE] misc improvements account, hr, crm, project
bzr revid: fp@openerp.com-20121110140519-z8x4ruqed7voa8rd
2012-11-10 15:05:19 +01:00
Hardik 78aab92b03 [IMP]Contract/Analytic Account to remove calendar view
bzr revid: hsa@tinyerp.com-20121108092720-9qctzpegww25ede6
2012-11-08 14:57:20 +05:30
Atul Patel (OpenERP) fca020e7fd [MERGE]: Merged improve fiscal position view.
bzr revid: atp@tinyerp.com-20121108050639-3m7n1cwhp6ijn4qy
2012-11-08 10:36:39 +05:30
Turkesh Patel (Open ERP) 1797cf8daa [IMP] account: improve fiscal position form view.
bzr revid: tpa@tinyerp.com-20121107102005-mas6cx6amsvvinnv
2012-11-07 15:50:05 +05:30
Fabien Pinckaers 2d05128be8 [FIX] removed buggy graph view of analytic accounts
bzr revid: fp@tinyerp.com-20120928175012-qsu4gfszmkd23b58
2012-09-28 19:50:12 +02:00
Harry (OpenERP) 0f21ab835e [IMP] account, l10n_ch: improve partner bank view
bzr revid: hmo@tinyerp.com-20120926100901-z9xxdstf75s9zzke
2012-09-26 15:39:01 +05:30
Khushboo Bhatt (Open ERP) 4c1f5af881 [FIX]l10n_ch:placehoder added for acc_number
bzr revid: kbh@tinyerp.com-20120925094028-7e4f6f960cj87h6l
2012-09-25 15:10:28 +05:30
Khushboo Bhatt (Open ERP) 51b035f2a7 [FIX]account:label for bank_ids and set default partner on bank
bzr revid: kbh@tinyerp.com-20120925070852-q136gtxzmm2vnxrp
2012-09-25 12:38:52 +05:30
Fabien Pinckaers 5ffbf77067 [MERGE] fixes in account
bzr revid: fp@tinyerp.com-20120920092726-5747f5kj14u26sb1
2012-09-20 11:27:26 +02:00
Jigar Amin - OpenERP e18762e891 [merge] lp:~openerp-dev/openobject-addons/trunk-addons9-accounting-apa-customer-payment-sgo
bzr revid: jam@tinyerp.com-20120913112859-333bb6fs2f925clr
2012-09-13 16:58:59 +05:30
ajay javiya (OpenERP) 930d5ce977 [IMP]: Improve view in Accounting Module
bzr revid: aja@tinyerp.com-20120913072126-04gs4rqkj3pc42um
2012-09-13 12:51:26 +05:30
Sanjay Gohel (Open ERP) 54eac9c851 [IMP]on create of sale receipt add first sale account and display lable of bank name and number in customer accounting tab
bzr revid: sgo@tinyerp.com-20120911133015-24z0gr1mnwzk6fwh
2012-09-11 19:00:15 +05:30
Vo Minh Thu 9822629548 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20120813160657-ilujdek8ys4fzhp9
2012-08-13 18:06:57 +02:00
Twinkle Christian (OpenERP) 44eb35dfa2 [IMP]Remove type field from the whole account
bzr revid: tch@tinyerp.com-20120808105907-08cd8y1n0grgxxid
2012-08-08 16:29:07 +05:30
Mayur Maheshwari (OpenERP) 7c51b1811d [FIX]all :set a no_open widget in this filed(country_id,state_id,title,context_id,timebox_id,user_id)
bzr revid: mma@tinyerp.com-20120806110307-nj7qipixr14puhub
2012-08-06 16:33:07 +05:30
Alexis de Lattre c11754eaa9 Merge with addons-trunk revno 7150
Adapt views accordingly

bzr revid: alexis@via.ecp.fr-20120802134012-fjk20wld5rv9v45i
2012-08-02 15:40:12 +02:00