Odoo Aide

0

0
2 Answers
3
Avatar

Aktiv software

--Aktiv software--
4254
| 6 3 9
Ahmedabad, Inde
--Aktiv software--

Started off with a small number and here we are serving multiple Odoo development organizations as a backend technical and functional Odoo force.
Apart from various business-oriented goals, we as a team have strongly emphasized on serving the Odoo Community. Being into the development of the open-source community we continuously thrive to learn, share and contribute to Odoo. Odoo having 20,000+ people contributing to the community from around the globe, we are proud that we belong here.
Talking about our contribution to Odoo Community we have prepared over 50+ Aktiv app modules. Moreover, we have launched wide range of modules that enhance the out-of-box functionalities of Odoo and meets the real-time business scenarios.
-POS
-Project Management
-Website
-Accounting
-Sales
-Productivity
-Inventory
-Document Management
-Human Resources
-Payment module (Payment Reminder)
-User Accessibility (Sign Up with Mobile Number, Activity Log)
-Report Modules (PDF, Printing, Invoice)
All in all, we combine the ERP solutions to add icing on the cake thereby beautifying the base of default Odoo functionalities. So, raise the bar of your business with our Go-To Odoo Apps.
To know more about the latest trends and innovations in Odoo you can also stay in tune with our social media profiles and grab relevant inside scoops.
“Your rewards are always in direct proportion to your contribution”. Keep Sharing, Keep Growing!

Aktiv software
14/06/2017 08:36

To replace default invoice report in POS, you need to extend "push_and_invoice_order" function of models.js file in point_of_sale and replace following code:

self.chrome.do_action('pos_custom_module.custom_report_id',{additional_context:{active_ids:order_server_id,}});


3 Comments
wizardz
14/06/2017 08:48

hello, thank you for your fast answer, when I change it to this with the name of my own report, the old invoice report is still printed out:

self.chrome.do_action('own_report',{additional_context:{active_ids:order_server_id,}});

Aktiv software
14/06/2017 09:00

Will you please check with new POS Session?

wizardz
14/06/2017 09:11

same problem...

0
Avatar

Niyas Raphy

--Niyas Raphy--
24280
| 7 7 11
Wayanad, Inde
--Niyas Raphy--

Odoo Techno Functionalist

Feel free to connect :  niyasraphyk@gmail.com

Twitter:https://twitter.com/niyasraphy
LinkedIn: https://www.linkedin.com/in/niyasraphy/
FB:https://www.facebook.com/niyasraphy123

Happy to help :)

Niyas Raphy
14/06/2017 08:28

Hi Wizards,

To change the default report into another one, you can make change in the original code or you can do it by a custom module,

if you are looking to change it by custom module then you can do it as follows, you can mention the new report name at

<field name="report_name">module_name.report_id</field>
<record id="point_of_sale.pos_invoice_report" model="ir.actions.report.xml">
<field name="name">Invoice</field>
<field name="model">pos.order</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">module_name.report_id</field>
</record>

if you are going to do it in original code, then point of sale -> views -> point_of_sale_report.xml then you can change the record in the id "pos_invoice_report" like this.

<record id="pos_invoice_report" model="ir.actions.report.xml">
<field name="name">Invoice</field>
<field name="model">pos.order</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">module_name.report_id</field>
</record>
7 Comments
wizardz
14/06/2017 08:50

hi, thank you for the fast answer.

when I try to change that to my own report, I get an error.

Is this because my report comes not from the point_of_sale module?:

In Odoo9 :

<report

id="pos_invoice_report"

string="Invoice"

model="pos.order"

report_type="qweb-pdf"

name="own_report"

file="own_report"

/>

Niyas Raphy
14/06/2017 09:08

hi, what error you got ? you have to mention the report name as module_name.report_id

wizardz
14/06/2017 09:11

and what if the report doesn't come from a module, I made that directly in odoo xml reports?

Niyas Raphy
14/06/2017 09:14

So you created the report from the user interface, to get the external id of that report you can activate the developer mode then , go to settings-> technical->reports -> reports , then select the report, then from the lady debug button (button in top menu bar near logged in user) select view meta data, on clicking it you will get the id of the report from XML ID, give this id

wizardz
16/06/2017 02:17

yes but my problem is, that I don't have any xml ID

Niyas Raphy
16/06/2017 02:36

Did you checked the way i have mentioned above to get XML ID?

wizardz
16/06/2017 02:43

the problem is that this report doesn't have any xml id , because it's made with aeroo reports

Poser une question
Writer
Keep Informed
1 Abonné(e)s
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now