[6.0RC1] documents - separation per company

Bug #676857 reported by Ferdinand
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Low
OpenERP R&D Addons Team 1

Bug Description

IMHO document structures must be separated by company
db_name / company / ......

at least to avoid duplicate document names (SO/PO...)

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
tfr (Openerp) (tfr) wrote :

invalid, keep the url simple, and possible in the configuration

Changed in openobject-addons:
status: In Progress → Invalid
Revision history for this message
Ferdinand (office-chricar) wrote :

I checked now with cadaver (on linux) and get the same result - hence the web_dav module does not work correctly

Revision history for this message
Ferdinand (office-chricar) wrote :

sorry wrong bug

Revision history for this message
Ferdinand (office-chricar) wrote :

@tft
Invoice report (account/report/account_print_invoice.rml) uses
(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/',''))
as default name to create attachments, regardless from which company in the db

to get a unique name it is neccessary to include the company_id.name in the attachment naming

(object.state in ('open','paid')) and ('INV-'+(object.company_id and (object.company_id.name+'-'))+(object.number or '').replace('/','-'))

save as attachment prefix field is to short !!!! to enter this string

had to increase the length of the field to 256
        'attachment': fields.char('Save As Attachment Prefix', size=256, help='This is the filename of the attachment used to store the printing result. Keep empty to not save the printed reports. You can use a python expression with the object and time variables.'),

obviously it is also possible (a must !) to create a folder per company manually to keep documents separated by company

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.