{"id":21044875,"url":"https://github.com/opusvl/odoo-trading-as","last_synced_at":"2026-04-23T12:31:11.649Z","repository":{"id":25586153,"uuid":"29020341","full_name":"OpusVL/odoo-trading-as","owner":"OpusVL","description":"WIP Module to allow printing of alternative letter heads for certain trading brands, without full multicompany","archived":false,"fork":false,"pushed_at":"2015-03-27T12:24:48.000Z","size":268,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2026-01-01T10:39:18.823Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpusVL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-09T14:46:34.000Z","updated_at":"2015-03-27T12:24:49.000Z","dependencies_parsed_at":"2022-07-14T00:40:33.337Z","dependency_job_id":null,"html_url":"https://github.com/OpusVL/odoo-trading-as","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OpusVL/odoo-trading-as","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2Fodoo-trading-as","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2Fodoo-trading-as/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2Fodoo-trading-as/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2Fodoo-trading-as/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpusVL","download_url":"https://codeload.github.com/OpusVL/odoo-trading-as/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2Fodoo-trading-as/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32181362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T11:42:27.955Z","status":"ssl_error","status_checked_at":"2026-04-23T11:42:18.877Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T14:18:57.109Z","updated_at":"2026-04-23T12:31:11.628Z","avatar_url":"https://github.com/OpusVL.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# odoo-trading-as\nModule to allow printing of alternative letter heads for certain trading brands, without full multicompany\ntrading.\n\nWork in progress - the data model is in a state of flux while we resolve interface compatibility\nbetween our trading as model and res.company.\n\n## trading\\_as\n\nImplements alternative company branding on all reports.\n\n### How to create a brand\n\nUnder the company which needs the new brand option:\n\n```\nSettings -\u003e Companies -\u003e Your Company\n```\n\nYou should see a new tab 'Brands'.\n\nClick Edit, and then Brands.\n\nClick 'Add new item' in the Brands list.\n\nChoose 'Your Company' for 'legal entity'.\n\nUnder the Partners list, click Create and Edit.\n\nFill in the name and address details of the partner and click Save.\n\nEnter the tagline and the footer to print on the reports.\n\nClick the logo to the left of the Brand Name and pick an appropriately-sized\nversion of your brand's logo.\n\nClick Save.\n\nClick Save on the company object.\n\n### How to apply a brand\n\nWhen creating or editing a customer, there is a field 'Brand' which you can set\nto one of the brands.  If it's blank, then all reports for this customer will just take\nthe company branding.  If it's set to a brand, then that brand is used.\n\n### How brand is decided\n\nThe report for any object that has a 'partner\\_id' will check if 'partner\\_id.brand'\nis set.  If it is, then it will use that brand object for the header and footer.\nOtherwise, it will use the partner's company or the current user's company according\nto the usual Odoo logic.\n\n### Known Limitations\n\n* You currently have to select the legal entity during creation of\n  a brand - it doesn't default to the company from which it's being created.\n\n* You have to create the partner explicitly.  res.company does somehow create its\n  partner\\_id delegate object automatically, but time constraints mean emulating res.company in that way\n  is out of scope at the moment.\n\n* The data links are in place for supporting multicompany (i.e. brands are attached to companies)\n  but there's no logic for validation etc that would be needed in a multicompany setting,\n  so the first time we need to use this in a multicompany setting some work will be needed to\n  make sure all that works, specifically that only brands under the user's or partner's company\n  are exposed.  Precisely what the logic should be is not yet decided.\n\n# Copyright and License\n\nCopyright (C) 2015 OpusVL\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as\npublished by the Free Software Foundation, either version 3 of the\nLicense, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n\nIf you require assistance, support, or further development of this\nsoftware, please contact OpusVL using the details below:\n\n* Telephone: +44 (0)1788 298 410\n* Email: community@opusvl.com\n* Web: http://opusvl.com\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopusvl%2Fodoo-trading-as","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopusvl%2Fodoo-trading-as","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopusvl%2Fodoo-trading-as/lists"}